Skip to content

Commit

Permalink
Have user merge the stable release PR
Browse files Browse the repository at this point in the history
Replace the auto-merge in the on-approval action with a comment instructing the user to merge the PR if it looks good. The on-merge-to-main action apparently doesn't run if GH Actions did the merge to main...?
  • Loading branch information
RJFelix committed Nov 15, 2023
1 parent 99113ae commit 68c003a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/on-pr-approved.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
- uses: actions/github-script@v6
with:
script: |
github.rest.pulls.merge({
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: ${{ github.event.pull_request.number }},
merge_method: 'merge'
body: 'Merge this PR to publich version ${{ steps.version.outputs.VERSION }} to npm as the latest stable version.'
})

0 comments on commit 68c003a

Please sign in to comment.