mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-31 18:49:47 +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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- README.md
|
||||||
|
- .gitignore
|
||||||
|
- .github/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
17
.github/workflows/pull_request_dependabot.yml
vendored
17
.github/workflows/pull_request_dependabot.yml
vendored
@ -26,10 +26,19 @@ jobs:
|
|||||||
CI: true
|
CI: true
|
||||||
- name: Merge PR
|
- name: Merge PR
|
||||||
if: success()
|
if: success()
|
||||||
uses: "pascalgn/automerge-action@v0.14.2"
|
uses: "actions/github-script@v2"
|
||||||
env:
|
with:
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GH_KEY }}"
|
||||||
MERGE_LABELS: "dependencies"
|
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
|
- name: Reject PR
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: peter-evans/close-pull@v1
|
uses: peter-evans/close-pull@v1
|
||||||
|
Loading…
Reference in New Issue
Block a user