File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11on :
22 workflow_dispatch :
3+ pull_request :
34
45# this cancels workflows currently in progress if you start a new one
56concurrency :
@@ -12,6 +13,8 @@ permissions: {}
1213jobs :
1314 test-latest-release :
1415 runs-on : [ubuntu-22.04]
16+ permissions :
17+ contents : read
1518 steps :
1619 - uses : actions/checkout@v4
1720
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 }}
Original file line number Diff line number Diff 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)
3636CLI_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
You can’t perform that action at this time.
0 commit comments