Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis-Nedry-From-Jurassic-Park committed Apr 22, 2022
1 parent 484f6ef commit dfa78ee
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
# https://github.com/pascalgn/automerge-action
name: "Automerge"
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
check_suite:
types:
- completed
status: {}
repository_dispatch:
types: [ checks-complete ]
# pull_request:
# types:
# - labeled
# - unlabeled
# - synchronize
# - opened
# - edited
# - ready_for_review
# - reopened
# - unlocked
# check_suite:
# types:
# - completed
# status: {}

jobs:
automerge:
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,19 @@ jobs:
- uses: actions/checkout@v2
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
- run: cargo test --verbose

checks_complete:
name: Trigger automerge
runs-on: ubuntu-latest
needs:
- check
- coverage
- build_and_test
steps:
- name: Trigger automerge
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
event-type: checks-complete
if: github.event_name != 'push'

0 comments on commit dfa78ee

Please sign in to comment.