From c724c354d79e5e0dc77010b1ca5fd4998205f583 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 8 Mar 2022 12:46:12 +1000 Subject: [PATCH] fix(ci): only run the full sync test on mergify queue PRs (#3773) * fix(ci): only run the full sync test on mergify queue PRs * fix inconsistent indenting and syntax * Update .github/workflows/test-full-sync.yml Co-authored-by: Gustavo Valverde --- .github/workflows/test-full-sync.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-full-sync.yml b/.github/workflows/test-full-sync.yml index 024d15da..f9f58870 100644 --- a/.github/workflows/test-full-sync.yml +++ b/.github/workflows/test-full-sync.yml @@ -5,7 +5,7 @@ on: inputs: network: default: 'Mainnet' - pull_request_review: + pull_request: branches: - main paths: @@ -21,7 +21,6 @@ on: # workflow definitions - 'docker/**' - '.github/workflows/test-full-sync.yml' - types: [submitted] env: CARGO_INCREMENTAL: '1' @@ -37,6 +36,9 @@ env: jobs: build: + # only run on Mergify head branches: + # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-workflow-based-on-the-head-or-base-branch-of-a-pull-request-1 + if: startsWith(github.head_ref, 'mergify/merge-queue/') name: Build images timeout-minutes: 210 runs-on: ubuntu-latest @@ -48,7 +50,7 @@ jobs: - name: Inject slug/short variables uses: rlespinasse/github-slug-action@v4 - # Automatic tag management and OCI Image Format Specification for labels + # Automatic tag management and OCI Image Format Specification for labels - name: Docker meta id: meta uses: docker/metadata-action@v3.6.2