From 0bbaeadcededbb91b8037e84e5330fbbd407487e Mon Sep 17 00:00:00 2001 From: mashehu Date: Tue, 8 Oct 2024 17:30:35 +0200 Subject: [PATCH] Template: run awsfulltest only when target branch is `master` --- nf_core/pipeline-template/.github/workflows/awsfulltest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nf_core/pipeline-template/.github/workflows/awsfulltest.yml b/nf_core/pipeline-template/.github/workflows/awsfulltest.yml index dc0450be43..dc220125ed 100644 --- a/nf_core/pipeline-template/.github/workflows/awsfulltest.yml +++ b/nf_core/pipeline-template/.github/workflows/awsfulltest.yml @@ -14,7 +14,8 @@ on: jobs: run-platform: name: Run AWS full tests - if: github.repository == '{{ name }}' && github.event.review.state == 'approved' + # run only if the PR is approved by at least 2 reviewers and against the master branch + if: github.repository == '{{ name }}' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' runs-on: ubuntu-latest steps: - uses: octokit/request-action@v2.x