From dc7266c577a559b599767b93cab1471d93ab2b6f Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Tue, 21 Jan 2025 23:02:56 -0700 Subject: [PATCH] Update GitHub Actions workflows. (#673) This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 0ec2b8485fe51c364be44467682099d341ac9466. --- .github/actions/setup-tools/action.yml | 2 +- .github/workflows/build_sdk.yml | 8 ++++++++ .github/workflows/lint.yml | 2 +- Makefile | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-tools/action.yml b/.github/actions/setup-tools/action.yml index 75b82a9a..cb8267e9 100644 --- a/.github/actions/setup-tools/action.yml +++ b/.github/actions/setup-tools/action.yml @@ -26,7 +26,7 @@ runs: steps: - name: Install Go if: inputs.tools == 'all' || contains(inputs.tools, 'go') - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5 + uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5 with: go-version: "1.21.x" cache-dependency-path: | diff --git a/.github/workflows/build_sdk.yml b/.github/workflows/build_sdk.yml index a84b0602..f50d3292 100644 --- a/.github/workflows/build_sdk.yml +++ b/.github/workflows/build_sdk.yml @@ -67,6 +67,14 @@ jobs: uses: ./.github/actions/download-codegen - name: Update path run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" + - name: Download schema-embed.json + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + with: + # Use a pattern to avoid failing if the artifact doesn't exist + pattern: schema-embed.* + # Avoid creating directories for each artifact + merge-multiple: true + path: provider/cmd/pulumi-resource-mongodbatlas - name: Restore makefile progress run: make --touch provider schema - name: Build SDK diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 665fb980..0244ab88 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -37,7 +37,7 @@ jobs: with: persist-credentials: false - name: Install go - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5 + uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5 with: # The versions of golangci-lint and setup-go here cross-depend and need to update together. go-version: 1.23 diff --git a/Makefile b/Makefile index f3309bba..3dfbd17d 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ PULUMICTL_VERSION := v0.0.46 PULUMICTL := $(shell which pulumictl || \ (test ! -e $(WORKING_DIR)/bin/pulumictl && \ GOPATH="$(WORKING_DIR)" go install "github.com/pulumi/pulumictl/cmd/pulumictl@$(PULUMICTL_VERSION)"; \ - echo "$(WORKING_DIR)/bin/puluimctl")) + echo "$(WORKING_DIR)/bin/pulumictl")) # Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable # Local & branch builds will just used this fixed default version unless specified