Skip to content

Commit

Permalink
Update minor_version_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Jan 24, 2024
1 parent 6faa3da commit c9768dd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/minor_version_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@ jobs:
echo "current_release_minor=$(cut -d "." -f 1,2 < VERSION.txt)" >> "$GITHUB_OUTPUT"
- name: Create new version branch
# We tag the commit where we branch off as "<version>-rc0", so reno will know where to stop next
# time we generate release notes for "next minor".
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git tag -m"v${{ steps.versions.outputs.current_release_minor }}.0-rc0" v${{ steps.versions.outputs.current_release_minor }}.0-rc0
git checkout -b v${{ steps.versions.outputs.current_release_minor }}.x
git push -u origin v${{ steps.versions.outputs.current_release_minor }}.x --tags
git push -u origin v${{ steps.versions.outputs.current_release_minor }}.x
- name: Bump version on v1.x
shell: bash
Expand All @@ -43,6 +40,8 @@ jobs:
cat VERSION.txt
git add .
git commit -m "Update unstable version to $NEW_VERSION"
# We tag the commit where we branch off as "<version>-rc0", so reno will know where to stop next
# time we generate release notes for "next minor".
VERSION_TAG="v$NEW_VERSION"
git tag $VERSION_TAG -m"$VERSION_TAG"
git push --atomic origin v1.x $VERSION_TAG
Expand Down

0 comments on commit c9768dd

Please sign in to comment.