diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 129e0b1b3f9..8a4185e0428 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,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: @@ -55,7 +55,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