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
Revert "refactor(ci): run gen on gen changes"
This reverts commit d0a5ba1.
  • Loading branch information
jsjoeio committed Sep 30, 2022
commit 15d2e8c1f493fa109fc6bef2a08520c1be38947e
17 changes: 1 addition & 16 deletions .github/workflows/coder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,6 @@ jobs:
- 'docs/**'
sh:
- "**.sh"
gen:
- coderd/database/dump.sql
- coderd/database/gen/dump/main.go
- coderd/database/gen/enum/main.go
- coderd/database/generate.sh
- coderd/database/migrations/*.sql
- coderd/database/querier.go
- coderd/database/queries/*.sql
- coderd/database/sqlc.yaml
- provisionersdk/proto/provisioner.pb.go
- provisionersdk/proto/provisioner.proto
- provisionerd/proto/provisionerd.pb.go
- provisionerd/proto/provisionerd.proto
- site/src/api/typesGenerated.ts
- scripts/apitypings/main.go
go:
- "**.go"
tf:
Expand Down Expand Up @@ -198,7 +183,7 @@ jobs:
timeout-minutes: 8
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.gen == 'true'
if: needs.changes.outputs.docs-only == 'false'
steps:
- uses: actions/checkout@v3

Expand Down