You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2024/01/24 10:33:01 UTC
(camel-k) branch main updated: fix(ci): Comment PR action uses octokit
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 7eed52ab3 fix(ci): Comment PR action uses octokit
7eed52ab3 is described below
commit 7eed52ab3919cdb7537eb503b19ae7dd2f8e90dc
Author: Gaelle Fournier <ga...@gmail.com>
AuthorDate: Wed Jan 24 11:05:29 2024 +0100
fix(ci): Comment PR action uses octokit
---
.github/workflows/comment-pr.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/comment-pr.yaml b/.github/workflows/comment-pr.yaml
index 7801919bd..0a256805f 100644
--- a/.github/workflows/comment-pr.yaml
+++ b/.github/workflows/comment-pr.yaml
@@ -20,7 +20,7 @@ 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 }},
@@ -28,7 +28,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,