Skip to content

Commit

Permalink
Ensure vib runs only when PR is approved
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Vazquez Gonzalez <josvaz@vmware.com>
  • Loading branch information
Jose Luis Vazquez Gonzalez committed Mar 6, 2023
1 parent fc66939 commit a3b48a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/helm-vib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
branches:
- main
- bitnami-labs:main
types:
- submitted
paths:
- 'helm/**'

Expand All @@ -28,6 +26,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 ]
Expand All @@ -43,6 +42,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 }}
Expand Down

0 comments on commit a3b48a0

Please sign in to comment.