From 11a484fb88c9a242dacc97993ae5af4b02ed4f94 Mon Sep 17 00:00:00 2001 From: Jirka Date: Thu, 2 Feb 2023 11:29:33 +0100 Subject: [PATCH 1/4] 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 eb510f03..97a13702 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 From a901ee1bba9c1b3708df800adbf221977f7a6179 Mon Sep 17 00:00:00 2001 From: Jirka Date: Thu, 2 Feb 2023 12:58:03 +0100 Subject: [PATCH 2/4] on trigger --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97a13702..24621e02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,10 @@ name: Python Fire -on: [push] +on: + push: + branches: [master] + pull_request: + branches: [master] jobs: build: From b34ef515abe39d2dad6c53a22c08d2c992d95e7a Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Thu, 2 Feb 2023 17:08:27 +0100 Subject: [PATCH 3/4] on all Co-authored-by: Hugo van Kemenade --- .github/workflows/build.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24621e02..7a9727cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,6 @@ name: Python Fire -on: - push: - branches: [master] - pull_request: - branches: [master] +on: [push, pull_request] jobs: build: From 110274aa69a3699905f00d5e489c6ab38373ee8e Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Sun, 22 Sep 2024 19:58:38 +0200 Subject: [PATCH 4/4] Apply suggestions from code review --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fc11fc0..70fbf656 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,6 @@ on: pull_request: branches: ["master"] - defaults: run: shell: bash