workflows/check-dead-repos: Use artifact form workflow

parent afc57ac8
...@@ -29,7 +29,7 @@ jobs: ...@@ -29,7 +29,7 @@ jobs:
var artifacts = await github.rest.actions.listWorkflowRunArtifacts({ var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
run_id: 2606174931, run_id: ${{ github.event.workflow_run.id }},
}); });
var matchArtifact = artifacts.data.artifacts.filter((artifact) => { var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "packages" return artifact.name == "packages"
...@@ -48,6 +48,6 @@ jobs: ...@@ -48,6 +48,6 @@ jobs:
github.event.workflow_run.conclusion == 'success') github.event.workflow_run.conclusion == 'success')
run: | run: |
rm packages/* rm packages/*
unzip packages.zip -d./packages/ unzip packages.zip
- name: Check dead repositories - name: Check dead repositories
run: fish .github/workflows/check-dead-repos.fish run: fish .github/workflows/check-dead-repos.fish
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