Skip to content

fix: exclude pre-release tags from publish-prod trigger#8

Merged
aiagate merged 1 commit into
mainfrom
fix/prod-workflow-trigger
Apr 13, 2026
Merged

fix: exclude pre-release tags from publish-prod trigger#8
aiagate merged 1 commit into
mainfrom
fix/prod-workflow-trigger

Conversation

@aiagate

@aiagate aiagate commented Apr 13, 2026

Copy link
Copy Markdown
Owner

Description

Fixes an issue where pre-release tags (e.g., v0.1.1rc1) were incorrectly triggering the publish-prod workflow.

Changes

  • Refined Glob Patterns: Switched to using the + character (GitHub's glob extension for "one or more") to strictly match stable version numbers.
  • publish-prod.yml: Now matches only v[0-9]+.[0-9]+.[0-9]+. Tags with suffixes like rc1 will no longer match.
  • publish-test.yml: Now matches all v* tags EXCEPT those that exactly match the stable version pattern. This ensures all pre-releases are caught without overlapping with production.

Verification

  • v0.1.0: Matches prod, excluded from test.
  • v0.1.10: Matches prod (multi-digit support), excluded from test.
  • v0.1.1rc1: Excluded from prod (due to trailing chars), matches test.
  • v1.0.0-beta: Excluded from prod, matches test.

Updated workflow triggers to clearly distinguish between stable and pre-release tags:
- prod: matches v[0-9]+.[0-9]+.[0-9]+ (e.g., v0.1.0)
- test: matches all v* EXCEPT stable tags (e.g., v0.1.1rc1, v1.0.0-beta)
@aiagate aiagate force-pushed the fix/prod-workflow-trigger branch from 7286314 to 3f82623 Compare April 13, 2026 12:32
@aiagate aiagate merged commit e4d25c7 into main Apr 13, 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