Skip to content

Commit 45da08f

Browse files
committed
Prevent update_version job from running on changelog update branches
1 parent 8fb0796 commit 45da08f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release-drafter.yml

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

1111
jobs:
1212
update_release_draft:
13+
if: "! (github.head_ref =~ '^doc/changelog-update-\\d+\\.\\d+\\.\\d+$')"
1314
permissions:
1415
contents: write
1516
pull-requests: write
@@ -25,6 +26,7 @@ jobs:
2526

2627
update_version:
2728
needs: update_release_draft
29+
if: "! (github.head_ref =~ '^doc/changelog-update-\\d+\\.\\d+\\.\\d+$')"
2830
runs-on: ubuntu-latest
2931
timeout-minutes: 30
3032
permissions:

0 commit comments

Comments
 (0)