From cdee3a72bedb88853e57c1de92aefc7f926666cb Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Tue, 2 Jul 2024 16:02:11 -0700 Subject: [PATCH] adjust ok logic (skipped does not work with required status checks) --- .github/workflows/e2e.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5e82979170..361b52a96f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -81,5 +81,12 @@ jobs: ok: runs-on: ubuntu-22.04 needs: e2e + if: always() steps: - - run: echo "e2e tests passed" + - run: | + result="${{ needs.e2e.result }}" + if [[ $result == "success" || $result == "skipped" ]]; then + exit 0 + else + exit 1 + fi