This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 9dac2cb50bb (chores) ci: try to use a newer version of the github-script for artifact download 9dac2cb50bb is described below commit 9dac2cb50bb5577dd01a78d2cadefa9a7cd7ad1a Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Thu Oct 13 16:04:37 2022 +0200 (chores) ci: try to use a newer version of the github-script for artifact download Also adjust the calls to the rest actions due to changes in github-script v5 and newer --- .github/workflows/component-pr.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/component-pr.yaml b/.github/workflows/component-pr.yaml index 69f61f1ed37..cdcd9e5e516 100644 --- a/.github/workflows/component-pr.yaml +++ b/.github/workflows/component-pr.yaml @@ -60,7 +60,7 @@ jobs: If necessary Apache Camel Committers may access logs and test results in the job summaries!` }) - name: 'Download artifact' - uses: actions/github-script@v3.1.1 + uses: actions/github-script@v6 if: | github.event_name == 'workflow_run' with: @@ -68,7 +68,7 @@ jobs: # - https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ # - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run 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 }}, @@ -76,7 +76,7 @@ jobs: var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "test-logs" })[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,