From d97a7c757ff0a68c956f7f6748a1955a341e8a95 Mon Sep 17 00:00:00 2001 From: Jonathan Striebel Date: Wed, 1 Sep 2021 13:48:06 +0200 Subject: [PATCH 1/4] CI: run dependent jobs after skipped ones --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c297ca91..298b67c4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -206,6 +206,10 @@ jobs: wkcuber_docker: needs: [webknossos_linux, wkcuber_linux, wkcuber_win, wkcuber_mac] + if: | + always() && + !contains(needs.*.result, 'failure') && + !contains(needs.*.result, 'cancelled') runs-on: ubuntu-latest steps: @@ -263,7 +267,11 @@ jobs: pypi: needs: [webknossos_linux, wkcuber_linux, wkcuber_win, wkcuber_mac] - if: startsWith(github.event.ref, 'refs/tags') + if: | + always() && + !contains(needs.*.result, 'failure') && + !contains(needs.*.result, 'cancelled') && + startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest strategy: max-parallel: 4 From bed9c39d28992169472b86a5dd01d14eb5441619 Mon Sep 17 00:00:00 2001 From: Jonathan Striebel Date: Wed, 1 Sep 2021 14:44:10 +0200 Subject: [PATCH 2/4] add success job --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 298b67c4b..10851a8b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -290,3 +290,11 @@ jobs: PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: ./publish.sh + + success: + needs: [webknossos_linux, wkcuber_linux, wkcuber_win, wkcuber_mac, wkcuber_docker] + if: | + always() && + !contains(needs.*.result, 'failure') && + !contains(needs.*.result, 'cancelled') + runs-on: ubuntu-latest From 61ad28fec58e9be4e924b9704c89260e0a6b2214 Mon Sep 17 00:00:00 2001 From: Jonathan Striebel Date: Wed, 1 Sep 2021 14:45:17 +0200 Subject: [PATCH 3/4] add empty steps --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10851a8b4..7115b65dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -298,3 +298,4 @@ jobs: !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') runs-on: ubuntu-latest + steps: [] From 3cb2618559d02599ee8ab292e1c4f9d2d847ac29 Mon Sep 17 00:00:00 2001 From: Jonathan Striebel Date: Wed, 1 Sep 2021 14:47:07 +0200 Subject: [PATCH 4/4] add dummy step --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7115b65dd..5085f51a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -298,4 +298,6 @@ jobs: !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') runs-on: ubuntu-latest - steps: [] + steps: + - name: Success + run: echo Success!