workflows/check-dead-repos: Fix artifact download script

parent fe568b59
......@@ -26,15 +26,15 @@ jobs:
uses: actions/github-script@v6.1.0
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ github.event.workflow_run.id }},
run_id: 2606174931,
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "packages"
})[0];
var download = await github.actions.downloadArtifact({
var download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment