From d0a5ba1c4b4e5ec793abb98d9ab503b61d25cac2 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 28 Sep 2022 16:52:37 +0000 Subject: [PATCH] refactor(ci): run gen on gen changes --- .github/workflows/coder.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coder.yaml b/.github/workflows/coder.yaml index 6f79fd9b87..475d1c9bca 100644 --- a/.github/workflows/coder.yaml +++ b/.github/workflows/coder.yaml @@ -68,6 +68,12 @@ jobs: # - '.github/**' sh: - "**.sh" + gen: + - coderd/database/dump.sql + - coderd/database/querier.go + - provisionersdk/proto/provisioner.pb.go + - provisionerd/proto/provisionerd.pb.go + - site/src/api/typesGenerated.ts go: - "**.go" tf: @@ -185,7 +191,7 @@ jobs: timeout-minutes: 8 runs-on: ubuntu-latest needs: changes - if: needs.changes.outputs.docs-only == 'false' + if: needs.changes.outputs.gen == 'true' steps: - uses: actions/checkout@v3