From 0deec7822517a703ca965d17f433bdaa5ac8ea07 Mon Sep 17 00:00:00 2001 From: jnsbck-uni Date: Thu, 21 Nov 2024 21:16:23 +0100 Subject: [PATCH] fix: use head_ref instead of head_sha --- .github/workflows/update_regression_baseline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_regression_baseline.yml b/.github/workflows/update_regression_baseline.yml index 75b6f1e4..aa16af69 100644 --- a/.github/workflows/update_regression_baseline.yml +++ b/.github/workflows/update_regression_baseline.yml @@ -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 @@ -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 }} \ No newline at end of file + git push origin HEAD:${{ steps.comment-branch.outputs.head_ref }} \ No newline at end of file