Skip to content

Commit

Permalink
fix: GITHUB_TOKEN bash variable interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Jul 29, 2024
1 parent 0ea4d24 commit ada3ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "${RUNNER_ARCH}" in
esac

RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/latest'
if [[ "${VERSION}" != "latest" ]]; then
if [[ "${VERSION}" != 'latest' ]]; then
RELEASE_URL='https://api.github.com/repos/orhun/git-cliff/releases/tags/${VERSION}'
fi

Expand All @@ -24,7 +24,7 @@ fi
# per GitHub account.
# Caching is disabled in order not to receive stale responses from Varnish cache fronting GitHub API.
RELEASE_INFO="$(curl --silent --show-error --fail \
--header 'authorization: Bearer ${GITHUB_TOKEN}' \
--header "authorization: Bearer ${GITHUB_TOKEN}" \
--header 'Cache-Control: no-cache, must-revalidate' \
"${RELEASE_URL}")"
TAG_NAME="$(echo "${RELEASE_INFO}" | jq --raw-output ".tag_name")"
Expand Down

0 comments on commit ada3ead

Please sign in to comment.