fix: pass cache key suffix correctly on PRs (#1160)

This commit is contained in:
bo0tzz
2025-11-20 13:56:16 +01:00
committed by GitHub
parent 253fa2cd55
commit 332ad0fb29
+1 -1
View File
@@ -54,7 +54,7 @@ runs:
REF: ${{ github.ref_name }}
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "cache-key-suffix=pr-${{ github.event.number }}" >> $GITHUB_OUTPUT
echo "suffix=pr-${{ github.event.number }}" >> $GITHUB_OUTPUT
else
SUFFIX=$(echo "${REF}" | sed 's/[^a-zA-Z0-9]/-/g')
echo "suffix=${SUFFIX}" >> $GITHUB_OUTPUT