[bitnami/*] Disable CI on closed PRs (#307)

* Disable CI jobs when PR is closed

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Amend typo

Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Fran Mulero 2022-07-21 16:19:17 +02:00 committed by GitHub
parent 093de3bfe9
commit 1275b733b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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 }}