Skip to content

Commit

Permalink
CI: Adapt pr_info_post to github-script v7 breaking changes
Browse files Browse the repository at this point in the history
Since v5, the method have been moved. This is not caught by CI as it
only uses the workflow in the master branch.
  • Loading branch information
Geod24 committed Jun 22, 2024
1 parent b48bf29 commit a8da51e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr_info_post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
uses: actions/github-script@v7
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 }},
});
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,
Expand Down

0 comments on commit a8da51e

Please sign in to comment.