File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments