Skip to content

Commit 4adaba5

Browse files
committed
Skip ci on workflow_run to minimize workflow executions
1 parent 3b667ec commit 4adaba5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,10 @@ on:
2121
default: AUTO
2222
release:
2323
types: [ published ]
24-
workflow_run:
25-
workflows: [ Build ]
26-
types: [ completed ]
27-
branches: [ master ]
2824

2925
jobs:
3026
release:
3127
runs-on: ubuntu-latest
32-
if: |
33-
github.event_name != 'workflow_run'
34-
|| (github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_commit.message, '[ci release]'))
3528
steps:
3629
- name: Validate build succeeded
3730
env:
@@ -116,7 +109,6 @@ jobs:
116109
- name: Publish release
117110
if: |
118111
github.event_name == 'release'
119-
|| github.event_name == 'workflow_run'
120112
|| inputs.publish == 'RELEASE'
121113
|| (inputs.publish == 'AUTO' && github.ref == 'refs/heads/master')
122114
env:

0 commit comments

Comments
 (0)