ci: Update the bump step of the release workflow [skip ci]

This commit is contained in:
2024-11-25 17:42:16 -07:00
parent 5bce9b240e
commit 7c88901185
+19 -3
View File
@@ -49,16 +49,32 @@ jobs:
run: | run: |
cz bump --yes --increment ${{ github.event.inputs.bump_type }} cz bump --yes --increment ${{ github.event.inputs.bump_type }}
- name: Push changes - name: Push changes to a new branch
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
git push origin main --follow-tags --force VERSION=$(cz version)
BRANCH_NAME="release-$VERSION"
git checkout -b $BRANCH_NAME
git add .
git commit -m "chore: bump version to $VERSION"
git push origin $BRANCH_NAME
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.push-changes.outputs.BRANCH_NAME }}
title: "Release ${{ steps.push-changes.outputs.VERSION }}"
body: "This pull request contains the changes for the ${{ steps.push-changes.outputs.VERSION }} release."
base: main
release-plz: release-plz:
# see https://release-plz.ieni.dev/docs/github # see https://release-plz.ieni.dev/docs/github
# for more information # for more information
name: Release-plz needs: bump
name: Release Crate
if: always()
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check if actor is repository owner - name: Check if actor is repository owner