Skip to content

Commit 5cc08ba

Browse files
committed
testing
1 parent 9982884 commit 5cc08ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/auto-spotless-part-2.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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.');
@@ -53,7 +56,6 @@ jobs:
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'

0 commit comments

Comments
 (0)