make sure workflow runs on PR base branch (#7772)
wip checkout pr branch and fetch origin e
This commit is contained in:
parent
3f87042114
commit
b8eaf67fcc
1 changed files with 3 additions and 1 deletions
4
.github/workflows/preview-theme.yml
vendored
4
.github/workflows/preview-theme.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue