File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,16 @@ jobs:
2727 # this script copied from
2828 # https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#using-data-from-the-triggering-workflow
2929 script : |
30+ console.log('=====================');
31+ console.log(context.payload.workflow_run);
32+ console.log('=====================');
3033 let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
3134 owner: context.repo.owner,
3235 repo: context.repo.repo,
3336 run_id: context.payload.workflow_run.id
3437 });
3538 let patchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
36- return artifact.name.startsWith( "patch-")
39+ return artifact.name == "patch"
3740 })[0];
3841 if (!patchArtifact) {
3942 core.info('No patch to apply.');
5356 }
5457 fs.writeFileSync(path.join(temp, 'patch.zip'), Buffer.from(download.data));
5558 core.setOutput("exists", "true");
56- core.setOutput("pr-number", patchArtifact.name.substring("patch-".length));
5759
5860 - name : Unzip patch
5961 if : steps.download-patch.outputs.exists == 'true'
You can’t perform that action at this time.
0 commit comments