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