Skip to content

Commit

Permalink
Update the download script
Browse files Browse the repository at this point in the history
  • Loading branch information
matiaskorhonen committed Sep 27, 2023
1 parent 5ebebe5 commit 8c7eb62
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ jobs:
uses: actions/github-script@v6
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 }},
name: "visual-snapshots"
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "visual-snapshots"
})[0];
var download = await github.actions.downloadArtifact({
var matchArtifact = artifacts.data.artifacts[0];
var download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
Expand Down

0 comments on commit 8c7eb62

Please sign in to comment.