Skip to content

Commit

Permalink
Issue TBD54566975#97: Only git push after all commits succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
ALRubinger committed Aug 2, 2024
1 parent da1262b commit 1aab1d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,21 @@ jobs:
git commit -m "[TBD Release Manager 🚀] Setting version to: $version"
tagName=v$version
git tag -a $tagName -m "Tag version: $tagName" # We tag with a prefix of "v"
git push origin main
git push origin $tagName
# Make the version and tag name available to subsequent jobs as an output param
echo "RELEASE_TAG=$tagName" >> "$GITHUB_OUTPUT"
echo "RELEASE_VERSION=$version" >> "$GITHUB_OUTPUT"
cat $GITHUB_OUTPUT
# Set the next development version and commit
# Set the next development version and commit and push
mvn \
versions:set \
--batch-mode \
-DnewVersion=$nextVersion
git add -Av
git commit -m "[TBD Release Manager 🚀] Setting next development version after $version to: $nextVersion"
git push origin main
git push origin $tagName
kotlin-release-to-tbd-artifactory-and-maven-central:
name: Release Kotlin to Maven Central
Expand Down

0 comments on commit 1aab1d1

Please sign in to comment.