Skip to content

Commit a8fa08e

Browse files
Merge branch 'main' into auto-cherry-pick
2 parents f526a67 + 9683c10 commit a8fa08e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/auto_cherry_pick.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
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

1118
permissions:
1219
contents: write
@@ -16,8 +23,10 @@ permissions:
1623

1724
jobs:
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 }}

0 commit comments

Comments
 (0)