From 985526120077bbb75f774f1e818a0545bde99c09 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Fri, 25 Aug 2023 13:04:12 -0700 Subject: [PATCH] Fix nightly workflow We missed updating this when we removed `.Config.actionVersions.setupGo` to `.Config.actions.setupGo`. These workflows were broken, and this fixes them. --- .../.github/workflows/nightly-test.yml | 15 +++------------ .../azure/repo/.github/workflows/nightly-test.yml | 12 +++++++++--- .../repo/.github/workflows/nightly-test.yml | 12 +++++++++--- .../gcp/repo/.github/workflows/nightly-test.yml | 12 +++++++++--- 4 files changed, 30 insertions(+), 21 deletions(-) diff --git a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/nightly-test.yml b/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/nightly-test.yml index db5ad38322..0d57562bcf 100644 --- a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/nightly-test.yml +++ b/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/nightly-test.yml @@ -23,10 +23,7 @@ jobs: repository: pulumi/scripts - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - - name: Install Go - uses: #{{ .Config.actionVersions.setupGo }}# - with: - go-version: 1.20.1 +#{{ .Config.actions.setupGo | toYaml | indent 4 }}# - name: Install pulumictl uses: #{{ .Config.actionVersions.installGhRelease }}# with: @@ -118,10 +115,7 @@ jobs: repository: pulumi/scripts - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - - name: Install Go - uses: #{{ .Config.actionVersions.setupGo }}# - with: - go-version: 1.20.1 +#{{ .Config.actions.setupGo | toYaml | indent 4 }}# - name: Install pulumictl uses: #{{ .Config.actionVersions.installGhRelease }}# with: @@ -196,10 +190,7 @@ jobs: repository: pulumi/scripts - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - - name: Install Go - uses: #{{ .Config.actionVersions.setupGo }}# - with: - go-version: 1.20.1 +#{{ .Config.actions.setupGo | toYaml | indent 4 }}# - name: Install pulumictl uses: #{{ .Config.actionVersions.installGhRelease }}# with: diff --git a/provider-ci/providers/azure/repo/.github/workflows/nightly-test.yml b/provider-ci/providers/azure/repo/.github/workflows/nightly-test.yml index 6e9fcefa0d..d94a43bed0 100644 --- a/provider-ci/providers/azure/repo/.github/workflows/nightly-test.yml +++ b/provider-ci/providers/azure/repo/.github/workflows/nightly-test.yml @@ -49,8 +49,10 @@ jobs: - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - name: Install Go - uses: + uses: actions/setup-go@v4 with: + cache-dependency-path: | + sdk/go.sum go-version: 1.20.1 - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0 @@ -141,8 +143,10 @@ jobs: - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - name: Install Go - uses: + uses: actions/setup-go@v4 with: + cache-dependency-path: | + sdk/go.sum go-version: 1.20.1 - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0 @@ -216,8 +220,10 @@ jobs: - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - name: Install Go - uses: + uses: actions/setup-go@v4 with: + cache-dependency-path: | + sdk/go.sum go-version: 1.20.1 - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0 diff --git a/provider-ci/providers/azuread/repo/.github/workflows/nightly-test.yml b/provider-ci/providers/azuread/repo/.github/workflows/nightly-test.yml index a96a8d3ee2..b84cd4c12f 100644 --- a/provider-ci/providers/azuread/repo/.github/workflows/nightly-test.yml +++ b/provider-ci/providers/azuread/repo/.github/workflows/nightly-test.yml @@ -47,8 +47,10 @@ jobs: - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - name: Install Go - uses: + uses: actions/setup-go@v4 with: + cache-dependency-path: | + sdk/go.sum go-version: 1.20.1 - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0 @@ -139,8 +141,10 @@ jobs: - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - name: Install Go - uses: + uses: actions/setup-go@v4 with: + cache-dependency-path: | + sdk/go.sum go-version: 1.20.1 - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0 @@ -214,8 +218,10 @@ jobs: - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - name: Install Go - uses: + uses: actions/setup-go@v4 with: + cache-dependency-path: | + sdk/go.sum go-version: 1.20.1 - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0 diff --git a/provider-ci/providers/gcp/repo/.github/workflows/nightly-test.yml b/provider-ci/providers/gcp/repo/.github/workflows/nightly-test.yml index 399c799357..2203d4de11 100644 --- a/provider-ci/providers/gcp/repo/.github/workflows/nightly-test.yml +++ b/provider-ci/providers/gcp/repo/.github/workflows/nightly-test.yml @@ -50,8 +50,10 @@ jobs: - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - name: Install Go - uses: + uses: actions/setup-go@v4 with: + cache-dependency-path: | + sdk/go.sum go-version: 1.20.1 - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0 @@ -142,8 +144,10 @@ jobs: - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - name: Install Go - uses: + uses: actions/setup-go@v4 with: + cache-dependency-path: | + sdk/go.sum go-version: 1.20.1 - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0 @@ -217,8 +221,10 @@ jobs: - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - name: Install Go - uses: + uses: actions/setup-go@v4 with: + cache-dependency-path: | + sdk/go.sum go-version: 1.20.1 - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0