Fix token handling for downloading benchmark report in workflow

This commit is contained in:
Palash Tyagi 2025-07-05 00:50:10 +01:00
parent 1f306c59f2
commit 1e908b0ac5

View File

@ -105,6 +105,8 @@ jobs:
> last-commit-date.json
- name: Download last available benchmark report
env:
GH_TOKEN: ${{ secrets.CUSTOM_GH_TOKEN }}
run: |
artifact_url=$(gh api -H "Accept: application/vnd.github+json" \
/repos/${{ github.repository }}/actions/artifacts \
@ -117,7 +119,7 @@ jobs:
exit 0
fi
curl -L -H "Authorization: Bearer ${{ secrets.CUSTOM_GH_TOKEN }}" \
curl -L -H "Authorization: Bearer ${GH_TOKEN}" \
"$artifact_url" -o benchmark-report.zip
# Print all files in the current directory