Skip to content

Tidy Helm action #771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Tidy Helm action #771

wants to merge 2 commits into from

Conversation

DiamondJoseph
Copy link
Contributor

No description provided.

Comment on lines -19 to -32
- name: Validate SemVer2 version compliance
if: startsWith(github.ref, 'refs/tags/')
env:
SEMVER_REGEX: ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$

run: |
ref="${{ github.ref_name }}"
my_regex="${{env.SEMVER_REGEX}}"
if [[ "$ref" =~ $my_regex ]]; then
echo "SemVer compliant version: $ref"
else
echo "Invalid SemVer version: $ref"
exit 1
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed offline, I would like proof we don't need this

Copy link
Contributor

@callumforrester callumforrester Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DiamondJoseph given my recent mishap releasing something with the wrong tag, should we just put something like this into the check CI and have it only run on a tag, such that the entire pipeline fails early if someone tries to push an invalid tag?

@stan-dot
Copy link
Contributor

@DiamondJoseph could you manually create a set of two tags off this branch and then run the actions for them - one correct and running and the other incorrect and rejected?

@DiamondJoseph
Copy link
Contributor Author

Superseded by #880.

@DiamondJoseph DiamondJoseph deleted the helm branch April 2, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants