From 1275b733b8de560d90eddcf66aae29c61b44685c Mon Sep 17 00:00:00 2001 From: Fran Mulero Date: Thu, 21 Jul 2022 16:19:17 +0200 Subject: [PATCH] [bitnami/*] Disable CI on closed PRs (#307) * Disable CI jobs when PR is closed Signed-off-by: Fran Mulero * Amend typo Signed-off-by: Fran Mulero --- .github/workflows/ci-pipeline.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci-pipeline.yaml b/.github/workflows/ci-pipeline.yaml index 8d7345d10e41..6e5a92ce3db0 100644 --- a/.github/workflows/ci-pipeline.yaml +++ b/.github/workflows/ci-pipeline.yaml @@ -17,6 +17,12 @@ jobs: get-container: runs-on: ubuntu-latest name: Get modified containers + if: | + github.event.pull_request.state != 'closed' && + ( + (github.event.action == 'labeled' && github.event.label.name == 'verify') || + (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'verify')) + ) outputs: container: ${{ steps.get-container.outputs.container }} result: ${{ steps.get-container.outputs.result }}