From 44c59b6e8d1b7eebb94376d48b300a19196a119f Mon Sep 17 00:00:00 2001 From: Ermal Kaleci Date: Sun, 28 Jul 2024 09:37:46 +0200 Subject: [PATCH] fix gha timeout check --- .github/workflows/check.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index de7fe8d..e06c986 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -30,11 +30,13 @@ jobs: - run: yarn update-env - - id: test - run: yarn test tests/${{ matrix.tests }} + - run: yarn test tests/${{ matrix.tests }} | tee output.txt + + - if: ${{ failure() }} + run: grep -q "Test timed out" output.txt && echo "TIMEOUT=true" >> $GITHUB_ENV - uses: ravsamhq/notify-slack-action@v2 - if: ${{ failure() && !contains(steps.test.outputs.stdout, 'Test timed out') }} + if: ${{ failure() && env.TIMEOUT != 'true' }} with: status: ${{ job.status }} env: