From 2739b6d3b65a38e93b5416523d4359d802bdceab Mon Sep 17 00:00:00 2001 From: Urgau Date: Thu, 18 Jan 2024 16:09:03 +0100 Subject: [PATCH] Improve and fix the success and failure bors job gates --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab6ec9c87cd..e5a74e6b314 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: - test - test_gitoxide runs-on: ubuntu-latest - if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto-cargo'" + if: "success() && github.event_name == 'push' && (github.ref == 'refs/heads/auto-cargo' || github.ref == 'refs/heads/try') && github.repository == 'rust-lang/cargo'" steps: - run: echo ok failure: @@ -54,7 +54,7 @@ jobs: - test - test_gitoxide runs-on: ubuntu-latest - if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto-cargo'" + if: "!success() && github.event_name == 'push' && (github.ref == 'refs/heads/auto-cargo' || github.ref == 'refs/heads/try') && github.repository == 'rust-lang/cargo'" steps: - run: exit 1