mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-19 00:13:00 +08:00
Update workflow
This commit is contained in:
parent
077cbf3cb4
commit
36f443d635
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@ -4,6 +4,10 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths-ignore:
|
||||
- README.md
|
||||
- .gitignore
|
||||
- .github/**
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
|
17
.github/workflows/pull_request_dependabot.yml
vendored
17
.github/workflows/pull_request_dependabot.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user