Skip to content

Commit 921c6b6

Browse files
authored
Merge pull request #65 from step-security/amanstep-patch-3
chore: update auto_cherry_pick.yml
2 parents 9ba7c2e + 944b90b commit 921c6b6

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/auto_cherry_pick.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ on:
66
base_branch:
77
description: "Base branch to create the PR against"
88
required: true
9-
default: "main"
10-
9+
default: "main"
10+
mode:
11+
description: "Run mode: cherry-pick or verify"
12+
required: false
13+
default: "cherry-pick"
14+
pull_request:
15+
types: [labeled, opened, synchronize]
16+
1117
permissions:
1218
contents: write
1319
pull-requests: write
@@ -16,8 +22,10 @@ permissions:
1622

1723
jobs:
1824
cherry-pick:
25+
if: github.event_name == 'workflow_dispatch' || contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'review-required')
1926
uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@v1
2027
with:
2128
original-owner: "Decathlon"
2229
repo-name: "release-notes-generator-action"
2330
base_branch: ${{ inputs.base_branch }}
31+
mode: ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}

0 commit comments

Comments
 (0)