You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/05/31 10:29:30 UTC
[camel] branch main updated: component-test - Get artifacts with retry
This is an automated email from the ASF dual-hosted git repository.
nfilotto 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 64f76e9f288 component-test - Get artifacts with retry
64f76e9f288 is described below
commit 64f76e9f288d6ed85a19713e00ee8913885d230d
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Wed May 31 12:29:03 2023 +0200
component-test - Get artifacts with retry
---
.github/actions/component-test/action.yaml | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/.github/actions/component-test/action.yaml b/.github/actions/component-test/action.yaml
index 921e2e8c00d..1a306d5ee90 100644
--- a/.github/actions/component-test/action.yaml
+++ b/.github/actions/component-test/action.yaml
@@ -86,17 +86,19 @@ runs:
console.log(artifacts)
console.log(artifacts.data)
console.log(artifacts.data.artifacts)
- artifacts = github.rest.actions.listWorkflowRunArtifacts({
- owner: context.repo.owner,
- repo: context.repo.repo,
- run_id: ${{ inputs.run-id }}
- });
- console.log("########")
- console.log(artifacts)
- console.log(artifacts.data)
- console.log(artifacts.data.artifacts)
- var message = `${{ inputs.comment-body }}
-
+ for (int i = 0; i < 30 && artifacts.data.artifacts.length == 0; i++) {
+ console.log("No artifacts yet, let's try again")
+ await setTimeout(1000);
+ artifacts = await github.rest.actions.listWorkflowRunArtifacts({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ run_id: ${{ inputs.run-id }}
+ });
+ console.log("########")
+ console.log(artifacts)
+ console.log(artifacts.data)
+ console.log(artifacts.data.artifacts)
+ }
**Result** :x: The tests failed please check the logs below:
`