From 2ee63534df8153b1d5d1c3a91c85b394cf69b920 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 29 Jul 2025 12:44:44 +0200 Subject: [PATCH 1/2] curl rate limit fix --- .github/workflows/test_latest_release.yml | 5 +++++ ci/test_latest_release.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_latest_release.yml b/.github/workflows/test_latest_release.yml index adddebbe..1153b4d0 100644 --- a/.github/workflows/test_latest_release.yml +++ b/.github/workflows/test_latest_release.yml @@ -1,5 +1,6 @@ on: workflow_dispatch: + pull_request: # this cancels workflows currently in progress if you start a new one concurrency: @@ -12,6 +13,8 @@ permissions: {} jobs: test-latest-release: runs-on: [ubuntu-22.04] + permissions: + contents: read steps: - uses: actions/checkout@v4 @@ -31,3 +34,5 @@ jobs: - name: Run all tests with latest roc release + latest basic-cli release run: EXAMPLES_DIR=./examples/ ./ci/test_latest_release.sh + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/ci/test_latest_release.sh b/ci/test_latest_release.sh index 06d15e09..0c038e09 100755 --- a/ci/test_latest_release.sh +++ b/ci/test_latest_release.sh @@ -32,7 +32,7 @@ mv "$NIGHTLY_FOLDER" roc_nightly ./roc_nightly/roc version # Get the latest basic-cli release file URL -CLI_RELEASES_JSON=$(curl -s https://api.github.com/repos/roc-lang/basic-cli/releases) +CLI_RELEASES_JSON=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/roc-lang/basic-cli/releases) CLI_RELEASE_URL=$(echo $CLI_RELEASES_JSON | jq -r '.[0].assets | .[] | select(.name | test("\\.tar\\.br$")) | .browser_download_url') # Use the latest basic-cli release as the platform for every example From 15997e544f4a58c853d3f2a1f1ba63adb4d8f0bb Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 29 Jul 2025 12:56:23 +0200 Subject: [PATCH 2/2] Update test_latest_release.yml --- .github/workflows/test_latest_release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test_latest_release.yml b/.github/workflows/test_latest_release.yml index 1153b4d0..34d0aab6 100644 --- a/.github/workflows/test_latest_release.yml +++ b/.github/workflows/test_latest_release.yml @@ -1,6 +1,5 @@ on: workflow_dispatch: - pull_request: # this cancels workflows currently in progress if you start a new one concurrency: