Update workflow

This commit is contained in:
Francisco Hodge 2021-08-12 20:58:47 -07:00
parent 077cbf3cb4
commit 36f443d635
2 changed files with 17 additions and 4 deletions

View File

@ -4,6 +4,10 @@ on:
push:
branches:
- master
paths-ignore:
- README.md
- .gitignore
- .github/**
jobs:
publish:

View File

@ -26,10 +26,19 @@ jobs:
CI: true
- name: Merge PR
if: success()
uses: "pascalgn/automerge-action@v0.14.2"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "dependencies"
uses: "actions/github-script@v2"
with:
github-token: "${{ secrets.GH_KEY }}"
script: |
const pullRequest = context.payload.pull_request
const repository = context.repo
await github.pulls.merge({
merge_method: "merge",
owner: repository.owner,
pull_number: pullRequest.number,
repo: repository.repo,
})
- name: Reject PR
if: failure()
uses: peter-evans/close-pull@v1