Skip to content

Commit

Permalink
ci: auto-merge the version bump PR
Browse files Browse the repository at this point in the history
  • Loading branch information
radiovisual committed Oct 20, 2024
1 parent af0b9e5 commit e9ceae9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:
git push origin version-bump/${{ env.RELEASE_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# This step will only run if all previous steps have succeeded and if it's not a pre-release
- name: Create Pull Request for Version Bump
if: success() && env.IS_PRE_RELEASE == 'false'
uses: peter-evans/create-pull-request@v6
Expand All @@ -55,3 +53,12 @@ jobs:
labels: version-bump
token: ${{ secrets.GITHUB_TOKEN }}
base: main

# Automatically enable auto-merge on the created PR with the version bump
- name: Enable Auto-Merge
if: success() && env.IS_PRE_RELEASE == 'false'
uses: peter-evans/enable-pull-request-automerge@v2
with:
pull-request-number: ${{ steps.create_pull_request.outputs.pull-request-number }}
token: ${{ secrets.GITHUB_TOKEN }}
merge-method: squash

0 comments on commit e9ceae9

Please sign in to comment.