Skip to content

Commit ea07473

Browse files
committed
Meta: adapt to actions/github-script breaking changes in v5
See #3506
1 parent 3e58c90 commit ea07473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/preview.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
with:
3232
script: |
3333
const { owner, repo } = context.repo;
34-
const artifacts = await github.actions.listWorkflowRunArtifacts({
34+
const artifacts = await github.actions.rest.listWorkflowRunArtifacts({
3535
owner,
3636
repo,
3737
run_id: ${{ github.event.workflow_run.id }},
3838
});
3939
const { id: artifact_id } = artifacts.data.artifacts.find((artifact) => artifact.name == 'out');
40-
const download = await github.actions.downloadArtifact({
40+
const download = await github.actions.rest.downloadArtifact({
4141
owner,
4242
repo,
4343
artifact_id,

0 commit comments

Comments
 (0)