File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 77 description : " Base branch to create the PR against"
88 required : true
99 default : " main"
10+ mode :
11+ description : " Run mode: cherry-pick or verify"
12+ required : false
13+ default : " cherry-pick"
14+
15+ pull_request :
16+ types : [labeled, opened, synchronize]
1017
1118permissions :
1219 contents : write
@@ -16,8 +23,10 @@ permissions:
1623
1724jobs :
1825 cherry-pick :
26+ if : github.event_name == 'workflow_dispatch' || contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'review-required')
1927 uses : step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@v1
2028 with :
2129 original-owner : " stefanzweifel"
2230 repo-name : " git-auto-commit-action"
2331 base_branch : ${{ inputs.base_branch }}
32+ mode : ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}
You can’t perform that action at this time.
0 commit comments