with:
result-encoding: string
script: |
+ console.log(context);
const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
- run_id: context.payload.workflow.run_id,
+ run_id: context.payload.event.workflow.run_id,
per_page: 1,
});
console.log(artifact_id);