From d3036d569eeb30d50ed55b0ff68cd5a818a62dce Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Sun, 8 Feb 2026 21:31:17 -0800 Subject: [PATCH] chore: only run lint-actions job on CI changes (#21999) It was split to reduce flaking, but still always ran on `main` anyways --- .github/workflows/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b7663a1028..92af9b40de 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -241,7 +241,9 @@ jobs: lint-actions: needs: changes - if: needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main' + # Only run this job if changes to CI workflow files are detected. This job + # can flake as it reaches out to GitHub to check referenced actions. + if: needs.changes.outputs.ci == 'true' runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }} steps: - name: Harden Runner