mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 15:59:33 +07:00
Readymade didn't work, trying my own github script for PR merge
This commit is contained in:
12
.github/workflows/uncivbot.yml
vendored
12
.github/workflows/uncivbot.yml
vendored
@ -41,12 +41,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Merge Pull Request
|
- name: Merge Pull Request
|
||||||
uses: juliangruber/merge-pull-request-action@v1
|
uses: "actions/github-script@v5"
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
|
github-token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
|
||||||
number: ${{ github.event.issue.number }}
|
script: |
|
||||||
method: squash
|
await github.rest.pulls.merge({
|
||||||
repo: juliangruber/octokit-action
|
merge_method: "squash",
|
||||||
|
owner: repository.owner,
|
||||||
|
pull_number: ${{ github.event.issue.number }},
|
||||||
|
repo: repository.repo,
|
||||||
|
})
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
|
Reference in New Issue
Block a user