Compare commits

..

2 Commits

Author SHA1 Message Date
Palash Tyagi
3e279b8138 Fix image height attribute in README.md 2025-07-05 15:35:16 +01:00
Palash Tyagi
a06725686f using http api instead of gh cli 2025-07-05 15:34:31 +01:00
2 changed files with 13 additions and 4 deletions

View File

@ -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!"

View File

@ -1,5 +1,5 @@
# <img align="center" alt="Rustframe" src=".github/rustframe_logo.png" height="50" /> rustframe # <img align="center" alt="Rustframe" src=".github/rustframe_logo.png" height="50px" /> rustframe
<!-- though the centre tag doesn't work as it would noramlly, it achieves the desired effect --> <!-- though the centre tag doesn't work as it would noramlly, it achieves the desired effect -->