make sure workflow runs on PR base branch (#7772)

wip

checkout pr branch and fetch origin

e
This commit is contained in:
Vicente Canales 2024-04-26 11:30:46 -05:00 committed by GitHub
parent 3f87042114
commit b8eaf67fcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,12 +10,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Retrieved Theme Changes
id: check-for-changes
run: |
# Retrieve list of all changed files
git fetch origin trunk:trunk
git fetch origin
changed_files=$(git diff --name-only HEAD origin/trunk)
# Loop through changed files and identify parent directories