Skip to content

Commit

Permalink
fix: use head_ref instead of head_sha
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsbck committed Nov 21, 2024
1 parent 5f0310b commit 0deec78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update_regression_baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Checkout PR branch
uses: actions/checkout@v3
with:
ref: ${{ steps.comment-branch.outputs.head_sha }}
ref: ${{ steps.comment-branch.outputs.head_ref }} # using head_sha vs. head_ref makes this work for forks
lfs: true
fetch-depth: 0 # This ensures we can checkout main branch too

Expand All @@ -51,4 +51,4 @@ jobs:
run: |
git add tests/regression_test_baselines.json
git commit -m "Update regression test baselines"
git push origin HEAD:${{ steps.comment-branch.outputs.head_sha }}
git push origin HEAD:${{ steps.comment-branch.outputs.head_ref }}

0 comments on commit 0deec78

Please sign in to comment.