name: automerge on: pull_request: types: - labeled - unlabeled - synchronize - opened - edited - ready_for_review - reopened - unlocked pull_request_review: types: - submitted repository_dispatch: types: [rust-tests-successful, solidity-tests-successful] status: {} jobs: automerge: runs-on: larger-runner steps: - name: automerge if: ${{ secrets.ACTIONS_PAT }} uses: pascalgn/automerge-action@v0.13.1 env: GITHUB_TOKEN: "${{ secrets.ACTIONS_PAT }}" MERGE_LABELS: "automerge" MERGE_REMOVE_LABELS: "automerge" MERGE_METHOD: "squash" # in rust.yml complete: runs-on: larger-runner 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 # in solidity.yml complete: runs-on: larger-runner needs: [install, lint, test] 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