Skip to content

Commit

Permalink
💚 Update release workflow to use 'git commit -a' for automatic staging (
Browse files Browse the repository at this point in the history
  • Loading branch information
grelinfo authored Dec 4, 2024
1 parent 640ba34 commit 1ba0b52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ jobs:
- name: Commit and push changes
if: ${{ steps.release-version.outputs.release-version != steps.current-version.outputs.current-version }}
run: |
git add .
git commit -m "🚀 Release $RELEASE_VERSION"
git commit -a -m "🚀 Release $RELEASE_VERSION" || exit 0
git tag -f $RELEASE_VERSION
git push origin $RELEASE_VERSION --force
git push origin HEAD:main
env:
RELEASE_VERSION: ${{ steps.release-version.outputs.release-version }}


publish-docs:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1ba0b52

Please sign in to comment.