Fix checking out correct ref in build workflow

This commit is contained in:
Marty Oehme 2025-06-23 22:55:18 +02:00
parent 0cbf4b6b65
commit b1277a2089
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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"