Fix checking out correct ref in build workflow
This commit is contained in:
parent
0cbf4b6b65
commit
b1277a2089
2 changed files with 9 additions and 1 deletions
8
.github/workflows/build.yaml
vendored
8
.github/workflows/build.yaml
vendored
|
|
@ -20,7 +20,15 @@ jobs:
|
|||
changed: ${{ steps.grabchanged.outputs.changed }}
|
||||
|
||||
steps:
|
||||
- name: checkout local templates from prev workflow
|
||||
if: "${{ github.event_name == 'workflow_run' }}"
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.workflow_run.head_branch }}
|
||||
|
||||
- name: checkout local templates
|
||||
if: "${{ github.event_name != 'workflow_run' }}"
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue