Skip to content

Commit 05736aa

Browse files
chore: Fix release workflow (#372)
**Description** There is an invalid variable reference error in the file: `github/scripts/release/create_changelog.sh.github/scripts/release/create_changelog.sh` Changes proposed in this pull request: - Fix invalid variable reference **Related issue(s)**
1 parent e0e0fe7 commit 05736aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/scripts/release/create_changelog.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ set -o pipefail
99
RELEASE_VERSION=$1
1010
PREVIOUS_RELEASE=$2
1111

12-
1312
if [ "${PREVIOUS_RELEASE}" == "" ]
1413
then
1514
PREVIOUS_RELEASE=$(git describe --tags --abbrev=0)
1615
fi
1716

1817
GITHUB_URL=https://api.github.com/repos/${CODE_REPOSITORY}
19-
GITHUB_AUTH_HEADER="Authorization: token ${GITHUB_TOKEN}"
18+
GITHUB_AUTH_HEADER="Authorization: Bearer ${GITHUB_TOKEN}"
2019
CHANGELOG_FILE="CHANGELOG.md"
2120

2221
echo "## What has changed" >> ${CHANGELOG_FILE}
@@ -48,6 +47,6 @@ then
4847
done <${NEW_CONTRIB}
4948
fi
5049

51-
echo -e "\n**Full changelog**: https://github.com/$REPOSITORY/compare/${PREVIOUS_RELEASE}...${RELEASE_VERSION}" >> ${CHANGELOG_FILE}
50+
echo -e "\n**Full changelog**: ${GITHUB_URL}/compare/${PREVIOUS_RELEASE}...${RELEASE_VERSION}" >> ${CHANGELOG_FILE}
5251

5352
rm ${NEW_CONTRIB} || echo "cleaned up"

0 commit comments

Comments
 (0)