From 72964529a5ff0c733417fe72781201af97511b0a Mon Sep 17 00:00:00 2001 From: T-256 <132141463+T-256@users.noreply.github.com> Date: Mon, 6 Nov 2023 21:48:20 +0330 Subject: [PATCH] Skip ecosystem check when no changes detected (#8520) ## Summary For example, https://github.com/astral-sh/ruff/pull/8512 doesn't need ecosystem check ## Test Plan --- .github/workflows/ci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f49d3bfc32..7714819622 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -184,7 +184,11 @@ jobs: - cargo-test-linux - determine_changes # Only runs on pull requests, since that is the only we way we can find the base version for comparison. - if: github.event_name == 'pull_request' + # Ecosystem check needs linter and/or formatter changes. + if: github.event_name == 'pull_request' && ${{ + needs.determine_changes.outputs.linter == 'true' || + needs.determine_changes.outputs.formatter == 'true' + }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v4