Skip to content

Commit 983bd4f

Browse files
authored
Merge pull request #6 from stackhpc/fix/helm-release-tag-check
Add extra helm chart version check to dev branches
2 parents bd0b571 + 5d6b87c commit 983bd4f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/helm-build-push.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ jobs:
1616
fetch-depth: 0
1717

1818
# We mark any builds on main branch as latest GH release
19-
# so make sure we don't accidentally use a pre-release tag.
19+
# so make sure we don't accidentally publiah a pre-release tag
20+
# on main or a stable tag on a dev branch.
21+
2022
- name: Fail on semver pre-release chart version
2123
run: yq .version deployment/helm/Chart.yaml | grep -v '[a-zA-Z-]'
2224
if: ${{ github.ref_name == 'main' }}
2325

26+
- name: Fail on stable semver chart version
27+
run: yq .version deployment/helm/Chart.yaml | grep '[a-zA-Z-]'
28+
if: ${{ github.ref_name != 'main' }}
29+
2430
# To reduce resource usage images are built only on tag.
2531
# To build a new set of images after committing and pushing
2632
# new changes to GitHub, use:

0 commit comments

Comments
 (0)