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
|
||||
|
|
|
|||
2
.github/workflows/checksum.yaml
vendored
2
.github/workflows/checksum.yaml
vendored
|
|
@ -73,7 +73,7 @@ jobs:
|
|||
run: |
|
||||
cp -r "upstream/srcpkgs/${{ env.CHANGED_PKG }}" srcpkgs
|
||||
|
||||
- name: Commit new checksum
|
||||
- name: commit new checksum
|
||||
uses: stefanzweifel/git-auto-commit-action@v6
|
||||
with:
|
||||
file_pattern: "srcpkgs/${{ env.CHANGED_PKG }}/template"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue