Skip to content

Commit

Permalink
component-test - Add log for artifacts debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
essobedo committed May 31, 2023
1 parent 999b868 commit 629fadf
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/actions/component-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,6 @@ runs:
with:
github-token: ${{ inputs.github-token }}
script: |
var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ inputs.run-id }}
});
console.log(artifacts)
artifacts = github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ inputs.run-id }}
});
console.log(artifacts)
console.log(artifacts.data)
console.log(artifacts.data.artifacts)
await github.rest.issues.updateComment({
owner: context.repo.owner,
repo: context.repo.repo,
Expand All @@ -96,6 +82,19 @@ runs:
repo: context.repo.repo,
run_id: ${{ inputs.run-id }}
});
console.log("########")
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 }}
**Result** :x: The tests failed please check the logs below:
Expand Down

0 comments on commit 629fadf

Please sign in to comment.