Skip to content

Commit

Permalink
Check access token is available.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsutton committed Oct 9, 2023
1 parent dcbe2cf commit 6065f5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions upload-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ GH="gh"

RELEASE_NAME=$(git describe --tags)
echo "Logging in to GitHub with access token"
if [ -z "${GITHUB_ACCESS_TOKEN:-}" ]
then
echo "GITHUB_ACCESS_TOKEN not set"
exit 1
fi
echo "${GITHUB_ACCESS_TOKEN}" | $GH auth login --with-token

cd "${SOURCE_DIR}"
Expand Down

0 comments on commit 6065f5e

Please sign in to comment.