mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Fix token handling for downloading benchmark report in workflow
This commit is contained in:
parent
1f306c59f2
commit
1e908b0ac5
4
.github/workflows/docs-and-testcov.yml
vendored
4
.github/workflows/docs-and-testcov.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user