From 455d22cdc8c07e652fa20c149ad27d9749cc6e8b Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 23 Apr 2024 19:46:58 +0100 Subject: [PATCH] Fix syntax for some if-conditions in `ci.yaml` (#11109) --- .github/workflows/ci.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 53edde037faf2..e70d5029fa145 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -273,9 +273,7 @@ jobs: - determine_changes # Only runs on pull requests, since that is the only we way we can find the base version for comparison. # Ecosystem check needs linter and/or formatter changes. - if: github.event_name == 'pull_request' && ${{ - needs.determine_changes.outputs.code == 'true' - }} + if: ${{ github.event_name == 'pull_request' && needs.determine_changes.outputs.code == 'true' }} timeout-minutes: 20 steps: - uses: actions/checkout@v4 @@ -554,7 +552,7 @@ jobs: benchmarks: runs-on: ubuntu-latest needs: determine_changes - if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }} + if: ${{ github.repository == 'astral-sh/ruff' && (needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main') }} timeout-minutes: 20 steps: - name: "Checkout Branch"