We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b49275c commit a9a85d6Copy full SHA for a9a85d6
1 file changed
.github/workflows/deploy-preview.yml
@@ -23,8 +23,11 @@ jobs:
23
with:
24
result-encoding: string
25
script: |
26
- // get all repository artifacts with name 'site-'
27
-
+ const allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
+ owner: context.repo.owner,
28
+ repo: context.repo.repo,
29
+ run_id: context.payload.workflow_run.id,
30
+ });
31
const artifact = allArtifacts.data.artifacts.find(artifact => {
32
return artifact.name.startsWith('site-');
33
});
0 commit comments