Skip to content

Commit 2ee6353

Browse files
committed
curl rate limit fix
1 parent f42ccdf commit 2ee6353

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test_latest_release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
on:
22
workflow_dispatch:
3+
pull_request:
34

45
# this cancels workflows currently in progress if you start a new one
56
concurrency:
@@ -12,6 +13,8 @@ permissions: {}
1213
jobs:
1314
test-latest-release:
1415
runs-on: [ubuntu-22.04]
16+
permissions:
17+
contents: read
1518
steps:
1619
- uses: actions/checkout@v4
1720

@@ -31,3 +34,5 @@ jobs:
3134

3235
- name: Run all tests with latest roc release + latest basic-cli release
3336
run: EXAMPLES_DIR=./examples/ ./ci/test_latest_release.sh
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ci/test_latest_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mv "$NIGHTLY_FOLDER" roc_nightly
3232
./roc_nightly/roc version
3333

3434
# Get the latest basic-cli release file URL
35-
CLI_RELEASES_JSON=$(curl -s https://api.github.com/repos/roc-lang/basic-cli/releases)
35+
CLI_RELEASES_JSON=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/roc-lang/basic-cli/releases)
3636
CLI_RELEASE_URL=$(echo $CLI_RELEASES_JSON | jq -r '.[0].assets | .[] | select(.name | test("\\.tar\\.br$")) | .browser_download_url')
3737

3838
# Use the latest basic-cli release as the platform for every example

0 commit comments

Comments
 (0)