mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -241,7 +241,9 @@ jobs:
|
|||||||
|
|
||||||
lint-actions:
|
lint-actions:
|
||||||
needs: changes
|
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' }}
|
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
|
|||||||
Reference in New Issue
Block a user