From 5299f948e376852c907ba4cda85bb644c5ed5c39 Mon Sep 17 00:00:00 2001 From: Avi Deitcher Date: Sun, 28 Apr 2024 15:56:53 +0300 Subject: [PATCH] use proper path for github-script properties Signed-off-by: Avi Deitcher --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 463d4e244..70ad0c9c9 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -22,7 +22,7 @@ jobs: with: github-token: ${{secrets.GITHUB_TOKEN}} 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 }}, @@ -30,7 +30,7 @@ jobs: var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "${{ env.linuxkit_file }}" })[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,