From 152cd2895ad7cebea7b6e706e6f288487be4cf06 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Mon, 13 Nov 2023 18:39:59 +0100 Subject: [PATCH] automation: running the automation when `./api-definitions` changes This works around a limitation where GHA only triggers based on the first 3000 files in a given changeset, which may or may not contain `./data`. Since API Definitions are temporarily output to both `./api-definitions` and `./data` - this PR means we trigger on both regardless, working around this issue for the moment. --- .github/workflows/automation-extract-tf-resource-ids.yaml | 1 + .github/workflows/automation-regenerate-go-sdk.yaml | 1 + .github/workflows/automation-regenerate-terraform.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/automation-extract-tf-resource-ids.yaml b/.github/workflows/automation-extract-tf-resource-ids.yaml index 00ba19b8616..e3509481194 100644 --- a/.github/workflows/automation-extract-tf-resource-ids.yaml +++ b/.github/workflows/automation-extract-tf-resource-ids.yaml @@ -3,6 +3,7 @@ name: Extract TF resource IDs on: pull_request_target: paths: + - 'api-definitions/**' # needed until https://github.com/hashicorp/pandora/issues/3315 is implemented - 'data/**' types: ['opened', 'edited'] diff --git a/.github/workflows/automation-regenerate-go-sdk.yaml b/.github/workflows/automation-regenerate-go-sdk.yaml index a9359cf6ac3..46adffa7f6e 100644 --- a/.github/workflows/automation-regenerate-go-sdk.yaml +++ b/.github/workflows/automation-regenerate-go-sdk.yaml @@ -5,6 +5,7 @@ on: branches: - main paths: + - 'api-definitions/**' - 'data/**' - 'tools/generator-go-sdk/**' workflow_dispatch: # for manual invocations diff --git a/.github/workflows/automation-regenerate-terraform.yaml b/.github/workflows/automation-regenerate-terraform.yaml index d5da411123a..7fb9a7a5e87 100644 --- a/.github/workflows/automation-regenerate-terraform.yaml +++ b/.github/workflows/automation-regenerate-terraform.yaml @@ -5,6 +5,7 @@ on: branches: - main paths: + - 'api-definitions/**' - 'data/**' - 'tools/generator-terraform/**' workflow_dispatch: # for manual invocations