Skip to content

Commit

Permalink
Add fall back
Browse files Browse the repository at this point in the history
  • Loading branch information
trodge committed Mar 5, 2024
1 parent c5be622 commit c10679b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ post_body=$( jq -n \
--arg state "pending" \
'{context: $context, target_url: $target_url, state: $state}')

# Fall back to old github token if new token is unavailable.
if [[ -z $GITHUB_TOKEN_MAGIC_MODULES ]]; then
GITHUB_TOKEN_MAGIC_MODULES=$GITHUB_TOKEN
fi

curl \
-X POST \
-u "$github_username:$GITHUB_TOKEN_MAGIC_MODULES" \
Expand Down

0 comments on commit c10679b

Please sign in to comment.