From 0926820849abaeebf20607025197bce1f3cf68e1 Mon Sep 17 00:00:00 2001 From: "sijie.sun" Date: Sat, 11 May 2024 00:14:42 +0800 Subject: [PATCH] fix workflow status check for matrix build --- .github/workflows/core.yml | 10 ++++++++++ .github/workflows/gui.yml | 12 +++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 194b253..ffa8e25 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -129,3 +129,13 @@ jobs: remote-path: /easytier-releases/${{ github.sha }}/ no-delete-remote-files: true retry: 5 + core-result: + if: needs.pre_job.outputs.should_skip != 'true' && always() + runs-on: ubuntu-latest + needs: + - pre_job + - build + steps: + - name: Mark result as failed + if: needs.build.result != 'success' + run: exit 1 diff --git a/.github/workflows/gui.yml b/.github/workflows/gui.yml index 42ac4b4..ee47330 100644 --- a/.github/workflows/gui.yml +++ b/.github/workflows/gui.yml @@ -191,4 +191,14 @@ jobs: local-path: ./artifacts/ remote-path: /easytier-releases/${{ github.sha }}/gui no-delete-remote-files: true - retry: 5 \ No newline at end of file + retry: 5 + gui-result: + if: needs.pre_job.outputs.should_skip != 'true' && always() + runs-on: ubuntu-latest + needs: + - pre_job + - build-gui + steps: + - name: Mark result as failed + if: needs.build-gui.result != 'success' + run: exit 1