Skip to content

Commit

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

Expand All @@ -20,6 +19,7 @@ jobs:
runs-on: ubuntu-latest
name: Lint chart
steps:
- run: echo "PR status is ${{ github.event.review.state }}"
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
Expand All @@ -28,6 +28,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 +44,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 f57c77d

Please sign in to comment.