Skip to content

ci: fix publish version regex#9

Merged
Shion1305 merged 1 commit into
mainfrom
shion/publish-version-from-tag-fix
Jan 27, 2026
Merged

ci: fix publish version regex#9
Shion1305 merged 1 commit into
mainfrom
shion/publish-version-from-tag-fix

Conversation

@Shion1305
Copy link
Copy Markdown
Owner

Summary

  • Fix the version regex used by the publish workflow so it matches pyproject.toml.
  • Keep the workflow tolerant when the version already matches the tag.

Context

The publish workflow failed with version field not found in pyproject.toml due to an over-escaped regex. This update uses a clean regex that matches the version = "..." line directly.

Changes

  • Use r'(?m)^version\s*=\s*["\']([^"\']+)["\']' to match the version field.

Testing

  • not run (workflow change only)

@Shion1305 Shion1305 merged commit 9775bc7 into main Jan 27, 2026
1 check passed
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.

1 participant