From 0955f7162671f5ddd1fefb981a8cb2fa8cc1421f Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Fri, 1 Sep 2023 13:11:10 -0400 Subject: [PATCH] evaluate workflow for cancelled status --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5139b47d6..904547a80 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -206,9 +206,9 @@ jobs: runs-on: ubuntu-20.04 needs: [ fablab-smoketest ] steps: - # allow time for investigation unless the smoketest succeeded or was skipped or the job was cancelled + # allow time for investigation unless the workflow is cancelled or the smoketest succeeded or was skipped - name: Sleep If Failed - if: ! contains(fromJson('["success","skipped","cancelled"]'), needs.fablab-smoketest.result) + if: !cancelled() && !contains(fromJSON('["success", "skipped"]'), needs.fablab-smoketest.result) run: | sleep 30m