File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 description : " Specify a script to run after audit fix"
1616 required : false
1717 default : " pnpm build"
18+ mode :
19+ description : " Run mode: cherry-pick or verify"
20+ required : false
21+ default : " cherry-pick"
22+
23+ pull_request :
24+ types : [labeled, opened, synchronize]
1825
1926permissions :
2027 contents : write
@@ -23,11 +30,13 @@ permissions:
2330 issues : write
2431
2532jobs :
26- audit-fix :
27- uses : step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@upstream-Changes-CherryPick
33+ cherry-pick :
34+ if : github.event_name == 'workflow_dispatch' || contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'review-required')
35+ uses : step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@v1
2836 with :
2937 original-owner : " pnpm"
3038 repo-name : " action-setup"
3139 base_branch : ${{ inputs.base_branch }}
3240 package_manager : " pnpm"
33- script : ${{ inputs.script || 'pnpm build' }}
41+ script : ${{ inputs.script || 'pnpm build' }}
42+ mode : ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}
You can’t perform that action at this time.
0 commit comments