Skip to content

Commit

Permalink
testing github step summary
Browse files Browse the repository at this point in the history
  • Loading branch information
maxeeem committed Jan 25, 2024
1 parent 0475e53 commit 337a153
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/python-app-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ jobs:
name: test-report

- name: Extract number of failures and errors
id: extract_results
run: |
tr '\r' '\n' < output-dev.txt > old.txt
tr '\r' '\n' < output-pr.txt > new.txt
tail -n +53 old.txt > tmp.txt && mv tmp.txt old.txt
tail -n +53 new.txt > tmp.txt && mv tmp.txt new.txt
sed -n '/=============/q;p' old.txt
sed -n '/=============/q;p' new.txt
{
echo "TEST_RESULTS<<EOF"
diff -u old.txt new.txt || true
Expand All @@ -61,7 +62,10 @@ jobs:
- name: Comment on the PR
uses: thollander/[email protected]
with:
message: \`\`\`diff\n${{ env.TEST_RESULTS }}\n\`\`\`
message: |
```diff
${{ env.TEST_RESULTS }}
```
comment_tag: execution


0 comments on commit 337a153

Please sign in to comment.