Skip to content

Commit 110e6ad

Browse files
committed
chore(workflows): restrict release to SemVer tags
1 parent 86e2f8a commit 110e6ad

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,22 @@ run-name: Release ${{ github.ref_name }} by @${{ github.actor }}
44
on:
55
push:
66
tags:
7-
- '*'
7+
- '*.*.*'
88
- '!*alpha*'
99
- '!*beta*'
10-
- '!*rc*'
10+
- '!*+*'
1111

1212
permissions:
1313
contents: write
1414
actions: write
1515

1616
jobs:
1717
release:
18+
if: >
19+
startsWith(github.ref, 'refs/tags/') &&
20+
!contains(github.ref_name, 'alpha') &&
21+
!contains(github.ref_name, 'beta') &&
22+
!contains(github.ref_name, '+')
1823
uses: ianhubnet/.github/.github/workflows/project.yml@main
1924
with:
2025
name: ${{ vars.CSK_NAME }}

0 commit comments

Comments
 (0)