summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorWolfgang Walther <walther@technowledgy.de>2025-02-02 20:17:33 +0100
committerWolfgang Walther <walther@technowledgy.de>2025-02-02 20:17:33 +0100
commit93df51fa3360017b2e92e6a65246519551cd0c7b (patch)
tree2264840732cf575b686b400d1406c854cbb119a0 /.github
parentworkflows/eval: fail hard without target run (diff)
downloadnixpkgs-93df51fa3360017b2e92e6a65246519551cd0c7b.tar.gz
workflows/eval: rename BASE_SHA to TARGET_SHA
To be in line with the terminology introduced in the README.md in the same folder.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/eval.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml
index 4c545f8c0815..abf9b7c33704 100644
--- a/.github/workflows/eval.yml
+++ b/.github/workflows/eval.yml
@@ -171,10 +171,10 @@ jobs:
run: |
# Get the latest eval.yml workflow run for the PR's target commit
if ! run=$(gh api --method GET /repos/"$REPOSITORY"/actions/workflows/eval.yml/runs \
- -f head_sha="$BASE_SHA" -f event=push \
+ -f head_sha="$TARGET_SHA" -f event=push \
--jq '.workflow_runs | sort_by(.run_started_at) | .[-1]') \
|| [[ -z "$run" ]]; then
- echo "Could not find an eval.yml workflow run for $BASE_SHA, cannot make comparison"
+ echo "Could not find an eval.yml workflow run for $TARGET_SHA, cannot make comparison"
exit 1
fi
echo "Comparing against $(jq .html_url <<< "$run")"
@@ -195,7 +195,7 @@ jobs:
echo "targetRunId=$runId" >> "$GITHUB_OUTPUT"
env:
REPOSITORY: ${{ github.repository }}
- BASE_SHA: ${{ needs.attrs.outputs.targetSha }}
+ TARGET_SHA: ${{ needs.attrs.outputs.targetSha }}
GH_TOKEN: ${{ github.token }}
- uses: actions/download-artifact@v4