You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/10/18 11:32:25 UTC
[camel] 20/21: (chores) ci: try to use a newer version of the github-script for artifact download
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch camel-3.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit a6f6fd87ff721d655be5c975ab41c13fa117c4e9
Author: Otavio Rodolfo Piske <an...@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 2bc860f8ef0..5fa1d2c42ab 100644
--- a/.github/workflows/component-pr.yaml
+++ b/.github/workflows/component-pr.yaml
@@ -55,7 +55,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:
@@ -63,7 +63,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 }},
@@ -71,7 +71,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,