Skip to content

Commit

Permalink
fix: Automatically merge PR with version bump in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyabareeva authored Nov 21, 2024
1 parent 9638898 commit 7b60463
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.QUANDA_ADMIN }}

- name: Merge the Pull Request
run: |
# Find the PR number for the created branch
PR_NUMBER=$(gh pr list --state open --head version-bump-${{ steps.release.outputs.tag }} --json number --jq '.[0].number')
# Merge the PR
gh pr merge $PR_NUMBER --merge --admin
env:
GITHUB_TOKEN: ${{ secrets.QUANDA_ADMIN }}

0 comments on commit 7b60463

Please sign in to comment.