mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 13:08:48 +07:00
Readymade didn't work, trying my own github script for PR merge
This commit is contained in:
parent
b0e67376c6
commit
eb50ea4403
12
.github/workflows/uncivbot.yml
vendored
12
.github/workflows/uncivbot.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user