Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MuneebAijaz committed Jan 10, 2025
1 parent 565a3d6 commit 0e4db82
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/pull_request-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:

jobs:

helm-validation:
helm-chart-validation:
permissions:
contents: read

Expand All @@ -42,6 +42,22 @@ jobs:
with:
charts: deployments/kubernetes/chart/reloader

helm-version-validation:
needs: helm-chart-validation

permissions:
contents: read

runs-on: ubuntu-latest
name: Helm Chart Validation
if: ${{ contains(github.event.pull_request.labels.*.name, 'release/helm-chart' }}

- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0

- name: Add Stakater Helm Repo
run: |
helm repo add stakater https://stakater.github.io/stakater-charts
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/push-helm-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ env:
REGISTRY: ghcr.io

jobs:
build:
verify-and-push-helm-chart:

permissions:
contents: read
packages: write # to push artifacts to `ghcr.io`

name: Build
if: github.event.pull_request.merged == true
name: Verify and Push Helm Chart
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'release/helm-chart')) }}
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 0e4db82

Please sign in to comment.