Skip to content

Commit

Permalink
Add log info
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtawa committed Sep 22, 2022
1 parent f817236 commit 9dff13d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/commentResultVolumes.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ async function main() {
} else
return;

console.info(`Posting comment:\n${body}`)

await axios.post(
`https://api.github.com/repos/${author}/${repo}/issues/${pr}/comments`,
{ body }, {
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/testVolumeAdapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
if [ "$RUN_FILES" = "[]" ] && [ steps.check.outputs.triggered == 'true' ]; then
IFS='!' read -r -a array <<< steps.check.outputs.comment_body
IFS='!' read -r -a RUN_FILES <<< "${array[1]}"
IFS='!' read -r -a RUN_FILES <<< ${array[1]}
fi
echo $RUN_FILES
Expand All @@ -42,6 +42,7 @@ jobs:
for i in $(echo $RUN_FILES | tr -d '"[]' | tr "," "\n")
do
{
echo ${i}
ts-node ${{ github.workspace }}/volumes/cli/testAdapter.ts ${i} 2>&1 | tee output.txt
node ${{ github.workspace }}/.github/workflows/commentResultVolumes.js /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/output.txt "${{ github.repository_owner }}" "${{ github.event.repository.name }}" "${{ github.event.number }}" ${i}
if grep -q "\-\-\-\- ERROR \-\-\-\-" output.txt; then
Expand Down

0 comments on commit 9dff13d

Please sign in to comment.