chore: use more recent github script

Signed-off-by: Joyce Brum <joycebrum@google.com>
This commit is contained in:
Joyce Brum 2023-03-07 17:45:00 +00:00
parent 32466bab32
commit 9380ab096e
No known key found for this signature in database

View File

@ -18,10 +18,10 @@ jobs:
pull-requests: write
steps:
- name: 'Download artifact'
uses: actions/github-script@v3.1.0
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.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 }},
@ -29,7 +29,7 @@ jobs:
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "pr"
})[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,