Readymade didn't work, trying my own github script for PR merge

This commit is contained in:
Yair Morgenstern 2023-11-28 11:48:55 +02:00
parent b0e67376c6
commit eb50ea4403

View File

@ -41,12 +41,16 @@ jobs:
steps:
- name: Merge Pull Request
uses: juliangruber/merge-pull-request-action@v1
uses: "actions/github-script@v5"
with:
github-token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
number: ${{ github.event.issue.number }}
method: squash
repo: juliangruber/octokit-action
script: |
await github.rest.pulls.merge({
merge_method: "squash",
owner: repository.owner,
pull_number: ${{ github.event.issue.number }},
repo: repository.repo,
})
- uses: actions/checkout@v3
- uses: actions/setup-node@v2