File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 51
51
release :
52
52
name : Create Release
53
53
runs-on : ubuntu-latest
54
- if : github.ref == 'refs/heads/main'
55
- needs : [lint, test] # Only run release after both lint and test pass
54
+ # Only run release on main branch and when not triggered by automated commits
55
+ if : |
56
+ github.ref == 'refs/heads/main' &&
57
+ github.actor != 'github-actions[bot]' &&
58
+ !contains(github.event.head_commit.message, 'chore(release)') &&
59
+ !contains(github.event.head_commit.message, '[skip ci]')
60
+ needs : [lint, test]
56
61
concurrency : release
57
62
58
63
steps :
Original file line number Diff line number Diff line change 20
20
(github.event_name == 'pull_request') ||
21
21
(github.actor != 'github-actions[bot]' &&
22
22
!contains(github.event.head_commit.message, '[skip ci]') &&
23
- !contains(github.event.head_commit.message, '[ci skip]') &&
24
- !contains(github.event.head_commit.message, '[no ci]') &&
25
23
!contains(github.event.head_commit.message, 'chore(release)'))
26
24
27
25
strategy :
You can’t perform that action at this time.
0 commit comments