Skip to content

Commit a9a85d6

Browse files
committed
Fix accidental deletion
1 parent b49275c commit a9a85d6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy-preview.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ jobs:
2323
with:
2424
result-encoding: string
2525
script: |
26-
// get all repository artifacts with name 'site-'
27-
26+
const allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
27+
owner: context.repo.owner,
28+
repo: context.repo.repo,
29+
run_id: context.payload.workflow_run.id,
30+
});
2831
const artifact = allArtifacts.data.artifacts.find(artifact => {
2932
return artifact.name.startsWith('site-');
3033
});

0 commit comments

Comments
 (0)