Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor(ci): conditionally run jobs based on file changes #4242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 30, 2022
Prev Previous commit
Next Next commit
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`.
  • Loading branch information
jsjoeio committed Sep 28, 2022
commit 6479ff771c0c029d1f2fd973728e71a0afaead5f
4 changes: 4 additions & 0 deletions .github/workflows/coder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
- "**.sh"
go:
- "**.go"
tf:
- "**.tf"
ts:
- 'site/**'
k8s:
Expand Down Expand Up @@ -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
Expand Down