From 9e8f9d895ba60832c5554fdad77affb32a1629d5 Mon Sep 17 00:00:00 2001 From: fewensa Date: Thu, 5 Sep 2024 06:29:40 +0000 Subject: [PATCH] Fix CI --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 999a215..b148a88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -37,7 +37,7 @@ 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 }} @@ -45,7 +45,7 @@ jobs: - 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