From 0de8c6bace4f9c901497c1797c73d53c6ae21d65 Mon Sep 17 00:00:00 2001 From: Ringo De Smet Date: Mon, 4 Nov 2024 13:13:44 +0100 Subject: [PATCH] Only install tools for the configured SDK languages (#1121) Use `.Config.languages` to only set up the tools for the configured SDK languages. --- .../bridged-provider/.github/workflows/upgrade-provider.yml | 2 +- .../test-providers/acme/.github/workflows/upgrade-provider.yml | 2 +- .../test-providers/aws/.github/workflows/upgrade-provider.yml | 2 +- .../cloudflare/.github/workflows/upgrade-provider.yml | 2 +- .../docker/.github/workflows/upgrade-provider.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/upgrade-provider.yml b/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/upgrade-provider.yml index ce2318d83..a80aa3050 100644 --- a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/upgrade-provider.yml +++ b/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/upgrade-provider.yml @@ -43,7 +43,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, nodejs, dotnet, python, java + tools: pulumictl, pulumicli, #{{ range $index, $element := .Config.languages }}##{{if $index}}#, #{{end}}##{{ $element }}##{{end}}# - name: Install upgrade-provider run: go install github.com/pulumi/upgrade-provider@main shell: bash diff --git a/provider-ci/test-providers/acme/.github/workflows/upgrade-provider.yml b/provider-ci/test-providers/acme/.github/workflows/upgrade-provider.yml index f86516650..c69a219c4 100644 --- a/provider-ci/test-providers/acme/.github/workflows/upgrade-provider.yml +++ b/provider-ci/test-providers/acme/.github/workflows/upgrade-provider.yml @@ -31,7 +31,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, nodejs, dotnet, python, java + tools: pulumictl, pulumicli, dotnet, go, nodejs, python - name: Install upgrade-provider run: go install github.com/pulumi/upgrade-provider@main shell: bash diff --git a/provider-ci/test-providers/aws/.github/workflows/upgrade-provider.yml b/provider-ci/test-providers/aws/.github/workflows/upgrade-provider.yml index 0d7101ae8..0ad95f5a0 100644 --- a/provider-ci/test-providers/aws/.github/workflows/upgrade-provider.yml +++ b/provider-ci/test-providers/aws/.github/workflows/upgrade-provider.yml @@ -39,7 +39,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, nodejs, dotnet, python, java + tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java - name: Install upgrade-provider run: go install github.com/pulumi/upgrade-provider@main shell: bash diff --git a/provider-ci/test-providers/cloudflare/.github/workflows/upgrade-provider.yml b/provider-ci/test-providers/cloudflare/.github/workflows/upgrade-provider.yml index f86516650..22386fa72 100644 --- a/provider-ci/test-providers/cloudflare/.github/workflows/upgrade-provider.yml +++ b/provider-ci/test-providers/cloudflare/.github/workflows/upgrade-provider.yml @@ -31,7 +31,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, nodejs, dotnet, python, java + tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java - name: Install upgrade-provider run: go install github.com/pulumi/upgrade-provider@main shell: bash diff --git a/provider-ci/test-providers/docker/.github/workflows/upgrade-provider.yml b/provider-ci/test-providers/docker/.github/workflows/upgrade-provider.yml index f86516650..22386fa72 100644 --- a/provider-ci/test-providers/docker/.github/workflows/upgrade-provider.yml +++ b/provider-ci/test-providers/docker/.github/workflows/upgrade-provider.yml @@ -31,7 +31,7 @@ jobs: - name: Setup tools uses: ./.github/actions/setup-tools with: - tools: pulumictl, pulumicli, go, nodejs, dotnet, python, java + tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java - name: Install upgrade-provider run: go install github.com/pulumi/upgrade-provider@main shell: bash