Skip to content

Commit a43aff4

Browse files
fix(ci): use split() instead of matches() in Release job guard
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 65a0589 commit a43aff4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ env:
1919

2020
jobs:
2121
release:
22-
# Rolling aliases (v1, v1.0, v1.1) are updated by post-release.mjs — not full releases.
22+
# Full semver tags only (exclude rolling aliases v1, v1.0, v1.1).
2323
if: >-
2424
github.event_name == 'workflow_dispatch' ||
25-
matches(github.ref_name, '^v[0-9]+\.[0-9]+\.[0-9]+$')
25+
(startsWith(github.ref_name, 'v') && length(split(github.ref_name, '.')) == 3)
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout

0 commit comments

Comments
 (0)