Skip to content

Commit

Permalink
make sure workflow runs on PR base branch (#7772)
Browse files Browse the repository at this point in the history
wip

checkout pr branch and fetch origin

e
  • Loading branch information
vcanales authored Apr 26, 2024
1 parent 3f87042 commit b8eaf67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/preview-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8eaf67

Please sign in to comment.