Skip to content

Commit 84d0990

Browse files
committed
ci: Fix workflow conditions for manual releases
1 parent 7cf8fcc commit 84d0990

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/bump-version.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
workflows: [ Test ]
66
branches: [ main, temp/hotfix ]
77
types: [ completed ]
8+
9+
# Workflow dispatch can be used to promote a pre-release to a normal release
810
workflow_dispatch:
911

1012
env:
@@ -13,9 +15,11 @@ env:
1315
jobs:
1416
bump-version:
1517
if: |
16-
github.ref_name == 'main' &&
17-
(github.event_name == 'workflow_dispatch' ||
18-
github.event.workflow_run.conclusion == 'success')
18+
github.event_name == 'workflow_dispatch' ||
19+
(
20+
github.ref_name == 'main' &&
21+
github.event.workflow_run.conclusion == 'success'
22+
)
1923
env:
2024
JDK_VERSION: 21
2125
permissions:
@@ -78,8 +82,7 @@ jobs:
7882
bump-hotfix-version:
7983
if: |
8084
github.ref_name == 'temp/hotfix' &&
81-
(github.event_name == 'workflow_dispatch' ||
82-
github.event.workflow_run.conclusion == 'success')
85+
github.event.workflow_run.conclusion == 'success'
8386
env:
8487
JDK_VERSION: 21
8588
permissions:

0 commit comments

Comments
 (0)