Skip to content

Fix tag filter pattern in release.yml: glob syntax, not regex#31

Open
Copilot wants to merge 1 commit intodevelopfrom
copilot/fix-tags-trigger-release-pipelines
Open

Fix tag filter pattern in release.yml: glob syntax, not regex#31
Copilot wants to merge 1 commit intodevelopfrom
copilot/fix-tags-trigger-release-pipelines

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 29, 2026

release.yml uses [0-9]+.[0-9]+.[0-9]+* as the tag filter, but GitHub Actions tag filters use glob/fnmatch — not regex. In glob, + is a literal character, so this pattern matches tags like 1+.2+.3+, never standard semver tags like 1.2.3.

# Before — + is literal in glob, never matches semver tags
tags:
  - '[0-9]+.[0-9]+.[0-9]+*'

# After — * is glob wildcard, correctly matches 1.2.3 etc.
tags:
  - '[0-9]*.[0-9]*.[0-9]*'

The pattern `[0-9]+.[0-9]+.[0-9]+*` used regex-style `+` (one or more),
but GitHub Actions uses glob/fnmatch where `+` is a literal character.
This meant the pattern only matched tags like `1+.2+.3+`, never
standard semver tags like `1.2.3`.

Changed to `[0-9]*.[0-9]*.[0-9]*` which properly matches semver tags
using glob syntax.

Agent-Logs-Url: https://github.com/NiklasRosenstein/python-github-bot-api/sessions/37463044-7e7f-429c-831b-f33bf75fcd6c

Co-authored-by: NiklasRosenstein <[email protected]>
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.

2 participants