Skip to content

feat: check version match#1111

Open
jorgepiloto wants to merge 4 commits intomainfrom
feat/check-version-match
Open

feat: check version match#1111
jorgepiloto wants to merge 4 commits intomainfrom
feat/check-version-match

Conversation

@jorgepiloto
Copy link
Member

Fix #671 by making sure artifacts version matches the git tag that triggered a release.

@jorgepiloto jorgepiloto requested a review from a team as a code owner January 14, 2026 09:38
@jorgepiloto jorgepiloto added this to the ansys/actions@v10.3 milestone Jan 14, 2026
@github-actions github-actions bot added the enhancement General improvements to existing features label Jan 14, 2026
Comment on lines +179 to +180
ARTIFACT_VERSION="$(basename "${ARTIFACT_FILE}" \
| sed -E 's/^[^-]+-([0-9][0-9A-Za-z\.\-_]*).*/\1/')"
Copy link
Member

Choose a reason for hiding this comment

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

I think we might have to revisit this regex... I might be wrong but it's giving me some issues when I try it out

name: ${{ inputs.library-name }}-artifacts
path: ${{ inputs.library-name }}-artifacts

- name: "Verify tag and artifacts version agree"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- name: "Verify tag and artifacts version agree"
- name: "Verify tag and artifacts version match"

Copy link
Contributor

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

Thanks for this PR @jorgepiloto, I think that the current version extraction is not working. Can you update it ? Trying it on the proposed example (ansys-project-1.2.3-py3-none-any.whl) does behave as I would expect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement General improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify that tagged version and package version match before release

5 participants