From ff4c4e0542a8404554e415adb04f656948a93528 Mon Sep 17 00:00:00 2001 From: Jose Luis Vazquez Gonzalez Date: Thu, 2 Mar 2023 18:31:46 +0100 Subject: [PATCH] Ensure vib runs only when PR is approved Signed-off-by: Jose Luis Vazquez Gonzalez --- .github/workflows/helm-vib.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helm-vib.yaml b/.github/workflows/helm-vib.yaml index 5a8409fa1..4bf962732 100644 --- a/.github/workflows/helm-vib.yaml +++ b/.github/workflows/helm-vib.yaml @@ -1,11 +1,10 @@ name: Verify Helm Chart on: + workflow_dispatch: pull_request_target: branches: - main - bitnami-labs:main - types: - - submitted paths: - 'helm/**' @@ -28,6 +27,7 @@ jobs: # verify chart in multiple target platforms vib-k8s-verify: + if: github.event.review.state == 'approved' runs-on: ubuntu-latest environment: vmware-image-builder needs: [ vib-validate ] @@ -43,6 +43,7 @@ jobs: fail-fast: false name: Verify chart in ${{ matrix.target-platform}} steps: + - run: echo "PR approved, running extra validations" - uses: actions/checkout@v3.1.0 with: ref: ${{ github.event.pull_request.head.ref }}