Skip to content

Commit 9fbada6

Browse files
authored
chore: add conditional check to preview release (#5457)
* chore: add conditional check to preview release * chore: add breaking change conditional
1 parent 2d9fabe commit 9fbada6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/preview-release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11-
11+
# Run the job if manually triggered or if the commit message includes a commit type of fix or feat or breaking change
12+
if: contains(github.event.head_commit.message, 'fix:') || contains(github.event.head_commit.message, 'fix(') || contains(github.event.head_commit.message, 'feat:') || contains(github.event.head_commit.message, 'feat(') || contains(github.event.head_commit.message, '!:')
1213
steps:
1314
- name: Checkout PR branch
1415
uses: actions/checkout@v4

0 commit comments

Comments
 (0)