chore: only run lint-actions job on CI changes (#21999)

It was split to reduce flaking, but still always ran on `main` anyways
This commit is contained in:
Dean Sheather
2026-02-08 21:31:17 -08:00
committed by GitHub
parent d0f7bbc3bd
commit d3036d569e
+3 -1
View File
@@ -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