mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor(ci): only run style-fmt when needed
This adds a new item to `changes` for `**.tf` changes. Now it will only run `style-fmt` if PR includes changes to `site/**`, `**.tf`, or `**.ts`.
This commit is contained in:
@@ -70,6 +70,8 @@ jobs:
|
||||
- "**.sh"
|
||||
go:
|
||||
- "**.go"
|
||||
tf:
|
||||
- "**.tf"
|
||||
ts:
|
||||
- 'site/**'
|
||||
k8s:
|
||||
@@ -255,6 +257,8 @@ jobs:
|
||||
name: "style/fmt"
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
needs: changes
|
||||
if: needs.changes.outputs.sh == 'true' || needs.changes.outputs.ts == 'true' || needs.changes.outputs.tf == 'true'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
Reference in New Issue
Block a user