Fix pushing of changelog and versioning changes in release process.
WIthout this, we get hit with branch protection rules.
Austin S. Hemmelgarn committed
Mar 9, 2022 at 19:55 UTC
f79fbb8b0f68cc7dc900657f1341eaddf74c98dc
1 file changed
+1
-1
.github/scripts/prepare-changelog.sh
+1
-1
@@ -48,7 +48,7 @@ commit_changes() {
48
fi
49
50
if [ -n "${GITHUB_ACTIONS}" ]; then
51
- git push -u origin ${opts} "${branch}"
51
+ git push ${opts} "https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "${branch}"
52
else
53
echo "Not pushing changes as we are not running in GitHub Actions."
54
echo "Would have pushed ${branch} to origin, with additional options '${opts}'"