Merge pull request #22 from trails-cool/fix-automerge-triggers
This commit is contained in:
commit
ce0cd84562
1 changed files with 16 additions and 7 deletions
23
.github/workflows/automerge.yml
vendored
23
.github/workflows/automerge.yml
vendored
|
|
@ -1,11 +1,23 @@
|
|||
name: Automerge
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["CI"]
|
||||
types: [completed]
|
||||
pull_request:
|
||||
types: [labeled]
|
||||
types:
|
||||
- labeled
|
||||
- unlabeled
|
||||
- synchronize
|
||||
- opened
|
||||
- edited
|
||||
- ready_for_review
|
||||
- reopened
|
||||
- unlocked
|
||||
pull_request_review:
|
||||
types:
|
||||
- submitted
|
||||
check_suite:
|
||||
types:
|
||||
- completed
|
||||
status: {}
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
|
|
@ -14,9 +26,6 @@ jobs:
|
|||
automerge:
|
||||
name: Automerge PR
|
||||
runs-on: ubuntu-latest
|
||||
if: >
|
||||
github.event_name == 'pull_request' ||
|
||||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue