mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
using http api instead of gh cli
This commit is contained in:
parent
7106f6ccf7
commit
a06725686f
15
.github/workflows/docs-and-testcov.yml
vendored
15
.github/workflows/docs-and-testcov.yml
vendored
@ -108,9 +108,18 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.CUSTOM_GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.CUSTOM_GH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
artifact_url=$(gh api -H "Accept: application/vnd.github+json" \
|
artifact_url=$(
|
||||||
/repos/${{ github.repository }}/actions/artifacts \
|
curl -sSL \
|
||||||
| jq -r '.artifacts[] | select(.name | startswith("benchmark-reports")) | .archive_download_url' | head -n 1)
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
-H "Authorization: Bearer ${GH_TOKEN}" \
|
||||||
|
"https://api.github.com/repos/${{ github.repository }}/actions/artifacts" \
|
||||||
|
| jq -r '
|
||||||
|
.artifacts[]
|
||||||
|
| select(.name | startswith("benchmark-reports"))
|
||||||
|
| .archive_download_url
|
||||||
|
' \
|
||||||
|
| head -n 1
|
||||||
|
)
|
||||||
|
|
||||||
if [ -z "$artifact_url" ]; then
|
if [ -z "$artifact_url" ]; then
|
||||||
echo "No benchmark artifact found!"
|
echo "No benchmark artifact found!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user