6 workflows: [pages-build-deployment]
11 runs-on: ubuntu-latest
13 - uses: actions/github-script@v5
16 result-encoding: string
19 const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({
20 owner: context.repo.owner,
21 repo: context.repo.repo,
22 run_id: context.payload.workflow_run.id,
25 console.log(artifact_id);
26 const artifact_url = await github.rest.actions.downloadArtifact({
27 owner: context.repo.owner,
28 repo: context.repo.repo,
29 artifact_id: artifact_id.data.artifacts[0].id,
30 archive_format: "zip",
32 console.log(artifact_url);
33 return artifact_url.headers["location"];
34 - run: curl -sSLO ${{ steps.shitshow.outputs.result }}