Skip to content

Commit

Permalink
Fix CI (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa authored Sep 9, 2024
1 parent 5bc20ce commit 63a3c94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: npm run test:ts:ci 2> jest-test.local.log

- name: Prepare report
if: failure()
if: ${{ failure() && github.event_name == 'pull_request' }}
run: |
sed -i '1i\```' jest-test.local.log
sed -i '1i\## Jest Test Errored Report' jest-test.local.log
Expand All @@ -37,15 +37,15 @@ jobs:
- name: Find Comment
uses: peter-evans/find-comment@v3
if: failure()
if: ${{ failure() && github.event_name == 'pull_request' }}
id: fc
with:
issue-number: ${{ github.event.number }}
body-includes: 'Jest Test Errored Report'

- name: Comment configurate
uses: GrantBirki/comment@v2
if: failure()
if: ${{ failure() && github.event_name == 'pull_request' }}
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
file: jest-test.local.log
Expand Down

0 comments on commit 63a3c94

Please sign in to comment.