-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] Fix skipped create release job in workflow #9
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,7 +6,7 @@ on: | |||||
| - main | ||||||
| - master | ||||||
| tags: | ||||||
| - 'v*' | ||||||
| - '*' | ||||||
| pull_request: | ||||||
| branches: | ||||||
| - main | ||||||
|
|
@@ -101,7 +101,7 @@ jobs: | |||||
| name: Create Release | ||||||
| needs: build | ||||||
| runs-on: ubuntu-latest | ||||||
| if: startsWith(github.ref, 'refs/tags/v') | ||||||
| if: startsWith(github.ref, 'refs/tags/') | ||||||
|
||||||
| if: startsWith(github.ref, 'refs/tags/') | |
| if: startsWith(github.ref, 'refs/tags/') && github.ref_name matches '^v?[0-9]+\.[0-9]+\.[0-9]+$' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wildcard pattern '' will trigger the workflow for any tag, including non-release tags (e.g., experimental tags, build tags, etc.). This could cause unintended releases to be created. Consider using a more specific pattern like 'v' or '[0-9]+.' to match only semantic version tags. If you need to support tags both with and without the 'v' prefix, consider using 'v[0-9]+.' for tags with prefix, or establish a clear tagging convention for releases.