Skip to content

Commit 8adbafc

Browse files
committed
gh/arm/bootstrap.sh: pass GITHUB_TOKEN
to avoid GH rate-limit
1 parent 7c882ba commit 8adbafc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/scripts/Linux/arm/bootstrap.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ mkai_arch=$(dpkg --print-architecture)
4343
if [ "$mkai_arch" = arm64 ]; then
4444
mkai_arch=aarch64
4545
fi
46-
mkai_url=$(curl https://api.github.com/repos/probonopd/go-appimage/releases/tags/continuous | grep "browser_download_url.*mkappimage-.*-$mkai_arch.AppImage" | head -n 1 | cut -d '"' -f 4)
46+
mkai_url=$(curl -H "Authorization: token $GITHUB_TOKEN"\
47+
https://api.github.com/repos/probonopd/go-appimage/releases/tags/continuous |
48+
grep "browser_download_url.*mkappimage-.*-$mkai_arch.AppImage" | head -n 1 |
49+
cut -d '"' -f 4)
4750
curl -L "$mkai_url" > mkappimage
4851
chmod 755 mkappimage
4952
#shellcheck disable=SC2211

.github/workflows/arm-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
Build:
1313
if: github.repository == 'CESNET/UltraGrid' || github.event.schedule == null
1414
runs-on: ubuntu-22.04 # TODO: see the commit message why 22.04 is explicit
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1517
strategy:
1618
matrix:
1719
arch: [armhf, arm64]

0 commit comments

Comments
 (0)