From aa03c35ee37543c1f11a5848cfda7ae977510fc5 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Mon, 7 Feb 2022 14:38:15 -0800 Subject: [PATCH] Update GitHub Actions workflows. --- .github/workflows/main.yml | 7 +++++++ .github/workflows/master.yml | 7 +++++++ .github/workflows/prerelease.yml | 7 +++++++ .github/workflows/release.yml | 7 +++++++ .github/workflows/update-bridge.yml | 3 +++ .github/workflows/update-upstream-provider.yml | 12 +++++++----- .goreleaser.prerelease.yml | 1 + .goreleaser.yml | 4 ++++ 8 files changed, 43 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 464316e6..54a00179 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -337,6 +337,13 @@ jobs: args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout 60m0s version: latest + - if: failure() && github.event_name == 'push' + name: Notify Slack + uses: 8398a7/action-slack@v3 + with: + author_name: Failure in publishing binaries + fields: repo,commit,author,action + status: ${{ job.status }} strategy: fail-fast: true matrix: diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index ba7cea54..156023be 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -337,6 +337,13 @@ jobs: args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout 60m0s version: latest + - if: failure() && github.event_name == 'push' + name: Notify Slack + uses: 8398a7/action-slack@v3 + with: + author_name: Failure in publishing binaries + fields: repo,commit,author,action + status: ${{ job.status }} strategy: fail-fast: true matrix: diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index de61444c..6042728a 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -283,6 +283,13 @@ jobs: args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout 60m0s version: latest + - if: failure() && github.event_name == 'push' + name: Notify Slack + uses: 8398a7/action-slack@v3 + with: + author_name: Failure in publishing binaries + fields: repo,commit,author,action + status: ${{ job.status }} strategy: fail-fast: true matrix: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15e9e051..856ebeef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -295,6 +295,13 @@ jobs: with: args: -p 3 release --rm-dist --timeout 60m0s version: latest + - if: failure() && github.event_name == 'push' + name: Notify Slack + uses: 8398a7/action-slack@v3 + with: + author_name: Failure in publishing binaries + fields: repo,commit,author,action + status: ${{ job.status }} strategy: fail-fast: true matrix: diff --git a/.github/workflows/update-bridge.yml b/.github/workflows/update-bridge.yml index 653e25a2..9ffcf83e 100644 --- a/.github/workflows/update-bridge.yml +++ b/.github/workflows/update-bridge.yml @@ -1,5 +1,7 @@ env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PULUMI_EXTRA_MAPPING_ERROR: false + PULUMI_MISSING_MAPPING_ERROR: false jobs: update_bridge: name: update-bridge @@ -70,6 +72,7 @@ jobs: - 14.x pythonversion: - "3.7" +name: Update pulumi-terraform-bridge "on": workflow_dispatch: inputs: diff --git a/.github/workflows/update-upstream-provider.yml b/.github/workflows/update-upstream-provider.yml index 9b5ea644..c182ebff 100644 --- a/.github/workflows/update-upstream-provider.yml +++ b/.github/workflows/update-upstream-provider.yml @@ -7,12 +7,14 @@ env: PROVIDER: digitalocean PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} PULUMI_API: https://api.pulumi-staging.io + PULUMI_EXTRA_MAPPING_ERROR: true PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget - PULUMI_PROVIDER_MAP_ERROR: true + PULUMI_MISSING_MAPPING_ERROR: true PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TRAVIS_OS_NAME: linux + UPSTREAM_PROVIDER_MAJOR_VERSION: "" UPSTREAM_PROVIDER_ORG: pulumi UPSTREAM_PROVIDER_REPO: terraform-provider-digitalocean jobs: @@ -54,12 +56,12 @@ jobs: - if: ${{ hashFiles('provider/shim/go.mod') != '' }} name: Update shim/go.mod run: cd provider/shim && go mod edit -require github.com/${{ env.UPSTREAM_PROVIDER_ORG - }}/${{ env.UPSTREAM_PROVIDER_REPO }}@${{ env.UPSTREAM_PROVIDER_SHA }} && go - mod tidy + }}/${{ env.UPSTREAM_PROVIDER_REPO }}${{ env.UPSTREAM_PROVIDER_MAJOR_VERSION + }}@${{ env.UPSTREAM_PROVIDER_SHA }} && go mod tidy - name: Update go.mod run: cd provider && go mod edit -require github.com/${{ env.UPSTREAM_PROVIDER_ORG - }}/${{ env.UPSTREAM_PROVIDER_REPO }}@${{ env.UPSTREAM_PROVIDER_SHA }} && go - mod tidy + }}/${{ env.UPSTREAM_PROVIDER_REPO }}${{ env.UPSTREAM_PROVIDER_MAJOR_VERSION + }}@${{ env.UPSTREAM_PROVIDER_SHA }} && go mod tidy - run: make tfgen - run: make build_sdks - if: ${{ !github.event.inputs.linked_issue_number }} diff --git a/.goreleaser.prerelease.yml b/.goreleaser.prerelease.yml index afea1d7d..294c3c8d 100644 --- a/.goreleaser.prerelease.yml +++ b/.goreleaser.prerelease.yml @@ -24,6 +24,7 @@ builds: - darwin - windows - linux + ignore: [] ldflags: - -X github.com/pulumi/pulumi-digitalocean/provider/v4/pkg/version.Version={{.Tag}} main: ./cmd/pulumi-resource-digitalocean/ diff --git a/.goreleaser.yml b/.goreleaser.yml index d3c60416..5850e122 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -24,6 +24,7 @@ builds: - darwin - windows - linux + ignore: [] ldflags: - -X github.com/pulumi/pulumi-digitalocean/provider/v4/pkg/version.Version={{.Tag}} main: ./cmd/pulumi-resource-digitalocean/ @@ -32,6 +33,9 @@ changelog: exclude: - Merge branch - Merge pull request + - '[internal]' + - '[ci]' + - '[chore]' sort: asc use: git release: