add: trigger event (#259)

buddies-main-deployment
Erin Hales 4 years ago committed by GitHub
parent 72d6ae20fb
commit 25d87f403d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      .github/workflows/mergify.yml
  2. 13
      .github/workflows/rust.yml
  3. 14
      .github/workflows/solidity.yml

@ -16,9 +16,8 @@ on:
types:
- submitted
check_suite:
types:
- completed
repository_dispatch:
types: [rust-tests-successful, solidity-tests-successful]
status: {}
@ -29,11 +28,9 @@ jobs:
steps:
- name: automerge
uses: "pascalgn/automerge-action@v0.13.1"
with:
args: “--trace”
uses: pascalgn/automerge-action@v0.13.1
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.ACTIONS_PAT }}"
MERGE_LABELS: "automerge"
MERGE_REMOVE_LABELS: "automerge"
MERGE_METHOD: "squash"

@ -41,3 +41,16 @@ jobs:
run: cd rust && cargo clippy -- -D warnings
- name: Lint
run: cd rust && cargo fmt -- --check
complete:
runs-on: ubuntu-latest
needs: [build, test, lint]
steps:
- name: Rust tests successful
if: success()
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.ACTIONS_PAT }}
repository: ${{ github.repository }}
event-type: rust-tests-successful

@ -48,3 +48,17 @@ jobs:
- name: Lint
run: npm run lint
complete:
runs-on: ubuntu-latest
needs: [optics-core, optics-bridge]
steps:
- name: Solidity tests successful
if: success()
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.ACTIONS_PAT }}
repository: ${{ github.repository }}
event-type: solidity-tests-successful

Loading…
Cancel
Save