Skip to content

Commit c99a48c

Browse files
committed
fix: added conditions to prevent release loops
1 parent 8999a1d commit c99a48c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,12 @@ jobs:
4848
release:
4949
name: Create Release
5050
runs-on: ubuntu-latest
51+
needs: [lint, test]
5152
if: |
5253
github.ref == 'refs/heads/main' &&
5354
github.actor != 'github-actions[bot]' &&
5455
!contains(github.event.head_commit.message, 'chore(release)') &&
55-
!contains(github.event.head_commit.message, '[skip ci]') &&
56-
!contains(github.event.head_commit.message, 'docs: update CHANGELOG.md') &&
57-
!contains(github.event.head_commit.message, 'docs(changelog)') &&
58-
!matches(github.event.head_commit.message, '^[0-9]+\.[0-9]+\.[0-9]+$')
59-
needs: [lint, test]
56+
!contains(github.event.head_commit.message, '[skip ci]')
6057
concurrency: release
6158

6259
steps:

0 commit comments

Comments
 (0)