Skip to content

Commit 4ce6771

Browse files
Merge branch 'main' into auto-cherry-pick
2 parents e341ca5 + 7f33b3c commit 4ce6771

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/auto_cherry_pick.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
description: "Specify a script to run after audit fix"
1616
required: false
1717
default: "yarn run all"
18+
pull_request:
19+
types: [opened, synchronize, labeled]
1820

1921
permissions:
2022
contents: write
@@ -24,10 +26,12 @@ permissions:
2426

2527
jobs:
2628
cherry-pick:
29+
if: github.event_name == 'workflow_dispatch' || contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'review-required')
2730
uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@v1
2831
with:
2932
original-owner: "crazy-max"
3033
repo-name: "ghaction-setup-docker"
3134
base_branch: ${{ inputs.base_branch }}
3235
package_manager: "yarn"
3336
script: ${{ inputs.script || 'yarn run all' }}
37+
mode: ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}

0 commit comments

Comments
 (0)