Skip to content

Commit

Permalink
ci(go): allow empty commit, fix escaping (#85)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 authored Mar 17, 2024
1 parent d76eaed commit 17f7a36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/publish-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ runs:
git config --global --add safe.directory `pwd -P`
git config --global user.email "[email protected]"
git config --global user.name "Chris Gianelloni (bot)"
git commit -am "GHA: automatic publish: \${RELEASE_VERSION}"
git commit --allow-empty -am "GHA: automatic publish: ${RELEASE_VERSION}"
git push origin HEAD:main
if [[ \${RELEASE_VERSION} == v* ]]; then
git tag v\${RELEASE_VERSION} -a v\${RELEASE_VERSION}
git push origin v\${RELEASE_VERSION}
if [[ ${RELEASE_VERSION} == v* ]]; then
git tag ${RELEASE_VERSION} -a ${RELEASE_VERSION}
git push origin ${RELEASE_VERSION}
fi

0 comments on commit 17f7a36

Please sign in to comment.