From 0214f3f19d69f80a3bc21ae66d6c0bf05b07fa42 Mon Sep 17 00:00:00 2001 From: Jirka Date: Thu, 2 Feb 2023 11:29:33 +0100 Subject: [PATCH] ci: watcher for automerge --- .github/workflows/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc5e0405..6c8db34c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,3 +26,17 @@ jobs: run: ./.github/scripts/build.sh env: PYTHON_VERSION: ${{ matrix.python-version }} + + watcher: + runs-on: ubuntu-latest + needs: build + if: always() + steps: + - run: echo "${{ needs.build.result }}" + - name: failing... + if: needs.build.result == 'failure' + run: exit 1 + - name: cancelled or skipped... + if: contains(fromJSON('["cancelled", "skipped"]'), needs.build.result) + timeout-minutes: 1 + run: sleep 90