Prevent helm chart releases from becoming latest
This commit is contained in:
parent
044dadcdf1
commit
40278bbb22
1 changed files with 8 additions and 0 deletions
8
.github/workflows/helm-pages.yml
vendored
8
.github/workflows/helm-pages.yml
vendored
|
|
@ -142,3 +142,11 @@ jobs:
|
|||
env:
|
||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
|
||||
CR_MAKE_RELEASE_LATEST: false
|
||||
|
||||
- name: Mark Helm chart release as pre-release (avoid latest override)
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
TAG="helm-chart-${{ steps.version.outputs.version }}"
|
||||
gh release edit "$TAG" --prerelease --latest=false || echo "No helm chart release to edit for $TAG"
|
||||
|
|
|
|||
Loading…
Reference in a new issue