Skip to content

Commit

Permalink
Merge pull request #308 from klihub/fixes/stable-helm-chart-trigger
Browse files Browse the repository at this point in the history
.github: fix release check for Helm Chart packaging.
  • Loading branch information
marquiz authored Apr 8, 2024
2 parents 064cf5e + 069263e commit d810e82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/package-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ on:

env:
CHARTS_DIR: deployment/helm/
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') && 'true' || 'false' }}
UNSTABLE_CHARTS: unstable-helm-charts
REGISTRY: ghcr.io
REGISTRY_USER: ${{ github.repository_owner }}
REGISTRY_PATH: ${{ github.repository }}

jobs:
release:
if: ${{ github.env.IS_RELEASE == 'true' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down Expand Up @@ -48,10 +47,10 @@ jobs:
files: nri-*helm-chart*.tgz

unstable:
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
concurrency:
group: unstable-helm-charts
cancel-in-progress: false
if: ${{ github.env.IS_RELEASE != 'true' }}
permissions:
packages: write
runs-on: ubuntu-latest
Expand Down

0 comments on commit d810e82

Please sign in to comment.