Skip to content

Commit

Permalink
feat: update create pr when bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
khoilen committed Jan 7, 2025
1 parent f8b94bb commit b31fbc6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
- minor
- major


permissions:
contents: write
pull-requests: write

jobs:
bump-version:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -63,11 +68,13 @@ jobs:

- name: Create Pull Request
if: env.new_version != 'unknown'
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: bump-version-${{ env.new_version }}
title: "Bump version to ${{ env.new_version }}"
body: "This PR bumps the version to ${{ env.new_version }}."
labels: version-bump
base: main
delete-branch: true
assignees: khoilen
reviewers: khoilen

0 comments on commit b31fbc6

Please sign in to comment.