Skip to content

Commit 5c1f167

Browse files
author
Johannes Schneider
committed
fix: limit perform release runs
1 parent f968654 commit 5c1f167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/perform-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: "Perform Release"
33
on:
44
pull_request_review:
55
types: [submitted]
6-
branches: [RELEASE-*]
76

87
workflow_dispatch:
98
inputs:
@@ -19,6 +18,7 @@ env:
1918
jobs:
2019
prerequisites:
2120
name: "Prerequisites"
21+
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved' && startsWith(github.event.pull_request.head.ref, 'RELEASE-')) }}
2222
outputs:
2323
release-version: ${{ steps.determine-branch-names.outputs.RELEASE_VERSION }}
2424
release-tag: ${{ steps.determine-branch-names.outputs.RELEASE_TAG }}

0 commit comments

Comments
 (0)