Skip to content

Commit

Permalink
figure it out
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchodeluxe committed Jul 9, 2024
1 parent 48a2ea1 commit bbca853
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,18 @@ jobs:
- name: commit and tag version bump
run: |
# Strip double quotes from the new_version environment variable
# strip double quotes from the new_version environment variable
NEW_VERSION=${{ env.new_version }}
NEW_VERSION=${NEW_VERSION#\"}
NEW_VERSION=${NEW_VERSION%\"}
COMMIT_MSG="release version to $NEW_VERSION"
TAG="v$NEW_VERSION"
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git commit -am "bump version to $NEW_VERSION"
git tag -a "v$NEW_VERSION" -m "release version $NEW_VERSION"
git commit -am $COMMIT_MSG
git tag -a $TAG -m $COMMIT_MSG
git push origin main --tags
- name: create github release (triggers release)
Expand Down

0 comments on commit bbca853

Please sign in to comment.