Skip to content

Commit aa7c472

Browse files
authored
Merge pull request #15 from step-security/amanstep-patch-1
ci: update auto_cherry_pick.yml
2 parents 2c5016b + 55aa7fa commit aa7c472

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/auto_cherry_pick.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
description: "Base branch to create the PR against"
88
required: true
99
default: "main"
10+
pull_request:
11+
types: [opened, synchronize, labeled]
1012

1113
permissions:
1214
contents: write
@@ -16,8 +18,10 @@ permissions:
1618

1719
jobs:
1820
cherry-pick:
19-
uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@v1
21+
if: github.event_name == 'workflow_dispatch' || contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'review-required')
22+
uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@fix_Verify_cherry_pick-Logic
2023
with:
2124
original-owner: "planetscale"
2225
repo-name: "ghcommit-action"
2326
base_branch: ${{ inputs.base_branch }}
27+
mode: ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}

0 commit comments

Comments
 (0)