Skip to content

Commit d32e52e

Browse files
committed
Refactor condition for update_release_draft and update_version jobs to use contains function
1 parent 172e1d4 commit d32e52e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
update_release_draft:
13-
if: "! (github.head_ref =~ '^doc/changelog-update-\\d+\\.\\d+\\.\\d+$')"
13+
if: ${{ !contains(github.head_ref, 'doc/changelog-update-') }}
1414
permissions:
1515
contents: write
1616
pull-requests: write
@@ -26,7 +26,7 @@ jobs:
2626

2727
update_version:
2828
needs: update_release_draft
29-
if: "! (github.head_ref =~ '^doc/changelog-update-\\d+\\.\\d+\\.\\d+$')"
29+
if: ${{ !contains(github.head_ref, 'doc/changelog-update-') }}
3030
runs-on: ubuntu-latest
3131
timeout-minutes: 30
3232
permissions:

0 commit comments

Comments
 (0)