Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure approved runs vib #1121

Merged
merged 1 commit into from
Mar 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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