Skip to content

Commit afc43a0

Browse files
[CONFIG] Fix release CI for '[CONFIG]' commit titles (#17)
* dummy commit * Add empty commit to force use PR title during squash merge * fix release ci Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 1d7b5e6 commit afc43a0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@ jobs:
1313

1414
version_bump:
1515
runs-on: ubuntu-latest
16+
if: |
17+
startsWith(github.event.head_commit.message, '[MAJOR]') ||
18+
startsWith(github.event.head_commit.message, '[MINOR]') ||
19+
startsWith(github.event.head_commit.message, '[PATCH]')
1620
steps:
1721

18-
- name: Check commit message
19-
if: |
20-
(!startsWith(github.event.head_commit.message, '[MAJOR]')) &&
21-
(!startsWith(github.event.head_commit.message, '[MINOR]')) &&
22-
(!startsWith(github.event.head_commit.message, '[PATCH]'))
23-
run: exit 1
24-
2522
- uses: actions/checkout@v2
2623

2724
- name: Set up Python

0 commit comments

Comments
 (0)