Skip to content

Commit

Permalink
use the correct token var
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-4 committed Jul 31, 2023
1 parent edc3ab4 commit 70671db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ mv generated-docs/* $BASIC_CLI_PACKAGE_DIR # move all the folders to build/packa
# we need a github token
if [ -v GITHUB_TOKEN_READ_ONLY ]; then

curl -s -H "Authorization: token $TOKEN" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/roc-lang/basic-cli/releases" > basic_cli_releases.json
curl -s -H "Authorization: token $GITHUB_TOKEN_READ_ONLY" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/roc-lang/basic-cli/releases" > basic_cli_releases.json

DOCS_LINKS=$(cat basic_cli_releases.json | jq -r '.[] | .assets[] | select(.name=="docs.tar.gz") | .browser_download_url')

Expand Down

0 comments on commit 70671db

Please sign in to comment.