From b31fbc63d5965e586ced2706e9faf94aec2fbb2d Mon Sep 17 00:00:00 2001 From: khoilen Date: Tue, 7 Jan 2025 12:22:44 +0700 Subject: [PATCH] feat: update create pr when bump version --- .github/workflows/bump-version.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 54e0cae..1696fee 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -12,6 +12,11 @@ on: - minor - major + +permissions: + contents: write + pull-requests: write + jobs: bump-version: runs-on: ubuntu-latest @@ -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