From e84ab89939b6d600f4894b64ac8248d0e3db76d0 Mon Sep 17 00:00:00 2001 From: Pulumi Bot Date: Wed, 26 Jun 2024 19:37:10 +0000 Subject: [PATCH] [internal] Update GitHub Actions workflow files --- .github/actions/setup-tools/action.yml | 1 + .github/workflows/build_sdk.yml | 1 - .github/workflows/check-upstream-upgrade.yml | 21 +--- .github/workflows/command-dispatch.yml | 1 - .github/workflows/license.yml | 9 +- .github/workflows/lint.yml | 1 - .github/workflows/master.yml | 101 +++---------------- .github/workflows/prerelease.yml | 84 ++------------- .github/workflows/prerequisites.yml | 1 - .github/workflows/pull-request.yml | 1 - .github/workflows/release.yml | 84 ++------------- .github/workflows/resync-build.yml | 31 +----- .github/workflows/run-acceptance-tests.yml | 1 - .github/workflows/upgrade-bridge.yml | 24 ----- .github/workflows/upgrade-provider.yml | 24 ----- .github/workflows/verify-release.yml | 3 +- 16 files changed, 49 insertions(+), 339 deletions(-) diff --git a/.github/actions/setup-tools/action.yml b/.github/actions/setup-tools/action.yml index a3f170c8..ec2dddec 100644 --- a/.github/actions/setup-tools/action.yml +++ b/.github/actions/setup-tools/action.yml @@ -26,6 +26,7 @@ runs: cache-dependency-path: | provider/*.sum upstream/*.sum + sdk/*.sum - name: Install pulumictl if: inputs.tools == 'all' || contains(inputs.tools, 'pulumictl') diff --git a/.github/workflows/build_sdk.yml b/.github/workflows/build_sdk.yml index 9000da50..4ffc4be0 100644 --- a/.github/workflows/build_sdk.yml +++ b/.github/workflows/build_sdk.yml @@ -24,7 +24,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 PROVIDER_VERSION: ${{ inputs.version }} diff --git a/.github/workflows/check-upstream-upgrade.yml b/.github/workflows/check-upstream-upgrade.yml index 34c4eb8f..a4d997bc 100644 --- a/.github/workflows/check-upstream-upgrade.yml +++ b/.github/workflows/check-upstream-upgrade.yml @@ -8,14 +8,12 @@ jobs: name: Check for upstream provider upgrades runs-on: ubuntu-latest steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.21.x" - cache-dependency-path: | - sdk/go.sum - name: Checkout Repo uses: actions/checkout@v4 + - name: Setup tools + uses: ./.github/actions/setup-tools + with: + tools: go - name: Install upgrade-provider run: go install github.com/pulumi/upgrade-provider@main shell: bash @@ -32,17 +30,6 @@ jobs: env: REPO: ${{ github.repository }} shell: bash - - name: Send Check Version Failure To Slack - if: failure() - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_CHANNEL: provider-upgrade-publish-status - SLACK_COLOR: "#FF0000" - SLACK_ICON_EMOJI: ":owl:" - SLACK_MESSAGE: " Failed to check upstream for a new version " - SLACK_TITLE: ${{ github.event.repository.name }} upstream version check - SLACK_USERNAME: provider-bot - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} name: Check upstream upgrade on: workflow_dispatch: {} #so we can run this manually if necessary. diff --git a/.github/workflows/command-dispatch.yml b/.github/workflows/command-dispatch.yml index 53621f70..4d369a45 100644 --- a/.github/workflows/command-dispatch.yml +++ b/.github/workflows/command-dispatch.yml @@ -17,7 +17,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 jobs: diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 9e0eaa8b..867a75ad 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -24,7 +24,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 @@ -37,12 +36,10 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ env.PR_COMMIT_SHA }} - - name: Install Go - uses: actions/setup-go@v5 + - name: Setup tools + uses: ./.github/actions/setup-tools with: - cache-dependency-path: | - sdk/go.sum - go-version: "1.21.x" + tools: go - run: make upstream - uses: pulumi/license-check-action@main with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 59b41c3e..ff009c09 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,7 +23,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 6794a6af..bebf302b 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -17,7 +17,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 jobs: @@ -58,26 +57,10 @@ jobs: aws-access-key-id: ${{ secrets.AWS_CORP_S3_UPLOAD_ACCESS_KEY_ID }} aws-region: us-west-2 aws-secret-access-key: ${{ secrets.AWS_CORP_S3_UPLOAD_SECRET_ACCESS_KEY }} - - name: Install Go - uses: actions/setup-go@v5 + - name: Setup tools + uses: ./.github/actions/setup-tools with: - go-version: "1.21.x" - cache-dependency-path: | - sdk/go.sum - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/actions@v5 - with: - pulumi-version: "dev" - - if: github.event_name == 'pull_request' - name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - repo: pulumi/schema-tools + tools: pulumictl, pulumicli, go, schema-tools - name: Echo Coverage Output Dir run: 'echo "Coverage output directory: ${{ env.COVERAGE_OUTPUT_DIR }}"' - name: Generate Coverage Data @@ -117,21 +100,10 @@ jobs: swap-storage: false - name: Checkout Repo uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.21.x" - cache-dependency-path: | - sdk/go.sum - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 + - name: Setup tools + uses: ./.github/actions/setup-tools with: - tag: v0.0.46 - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/actions@v5 - with: - pulumi-version: "dev" + tools: pulumictl, pulumicli, go - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -159,26 +131,15 @@ jobs: - publish runs-on: ubuntu-latest steps: + - name: Setup tools + uses: ./.github/actions/setup-tools + with: + tools: pulumicli, go, node, dotnet, python, java - name: Publish SDKs - uses: pulumi/pulumi-package-publisher@v0.0.18 + uses: pulumi/pulumi-package-publisher@v0.0.19 with: sdk: all version: ${{ needs.prerequisites.outputs.version }} - dotnet-version: "6.0.x" - java-version: "11" - node-version: "20.x" - python-version: "3.11.8" - - env: - SLACK_CHANNEL: provider-upgrade-publish-status - SLACK_COLOR: "#FF0000" - SLACK_ICON_EMOJI: ":taco:" - SLACK_MESSAGE: "Publish failed :x:" - SLACK_TITLE: ${{ github.event.repository.name }} upgrade result - SLACK_USERNAME: provider-bot - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() - name: Send Publish Failure To Slack - uses: rtCamp/action-slack-notify@v2 tag_release_if_labeled_needs_release: name: Tag release if labeled as needs-release @@ -211,44 +172,10 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.21.x" - cache-dependency-path: | - sdk/go.sum - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/actions@v5 - with: - pulumi-version: "dev" - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: "20.x" - registry-url: https://registry.npmjs.org - - name: Setup DotNet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "6.0.x" - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.11.8" - - name: Setup Java - uses: actions/setup-java@v4 - with: - cache: gradle - distribution: temurin - java-version: "11" - - name: Setup Gradle - uses: gradle/gradle-build-action@v3 + - name: Setup tools + uses: ./.github/actions/setup-tools with: - gradle-version: "7.6" + tools: pulumictl, pulumicli, go, node, dotnet, python, java - name: Download provider + tfgen binaries uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index c172b3a0..c207d628 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -18,7 +18,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 jobs: @@ -64,21 +63,10 @@ jobs: swap-storage: false - name: Checkout Repo uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 + - name: Setup tools + uses: ./.github/actions/setup-tools with: - go-version: "1.21.x" - cache-dependency-path: | - sdk/go.sum - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/actions@v5 - with: - pulumi-version: "dev" + tools: pulumictl, pulumicli, go - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -105,26 +93,15 @@ jobs: - publish runs-on: ubuntu-latest steps: + - name: Setup tools + uses: ./.github/actions/setup-tools + with: + tools: pulumicli, go, node, dotnet, python, java - name: Publish SDKs - uses: pulumi/pulumi-package-publisher@v0.0.18 + uses: pulumi/pulumi-package-publisher@v0.0.19 with: sdk: all version: ${{ needs.prerequisites.outputs.version }} - dotnet-version: "6.0.x" - java-version: "11" - node-version: "20.x" - python-version: "3.11.8" - - env: - SLACK_CHANNEL: provider-upgrade-publish-status - SLACK_COLOR: "#FF0000" - SLACK_ICON_EMOJI: ":taco:" - SLACK_MESSAGE: "Publish failed :x:" - SLACK_TITLE: ${{ github.event.repository.name }} upgrade result - SLACK_USERNAME: provider-bot - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() - name: Send Publish Failure To Slack - uses: rtCamp/action-slack-notify@v2 publish_go_sdk: name: publish_go_sdk needs: @@ -134,11 +111,6 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - name: Download Go SDK uses: actions/download-artifact@v4 with: @@ -175,44 +147,10 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.21.x" - cache-dependency-path: | - sdk/go.sum - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/actions@v5 - with: - pulumi-version: "dev" - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: "20.x" - registry-url: https://registry.npmjs.org - - name: Setup DotNet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "6.0.x" - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.11.8" - - name: Setup Java - uses: actions/setup-java@v4 - with: - cache: gradle - distribution: temurin - java-version: "11" - - name: Setup Gradle - uses: gradle/gradle-build-action@v3 + - name: Setup tools + uses: ./.github/actions/setup-tools with: - gradle-version: "7.6" + tools: pulumictl, pulumicli, go, node, dotnet, python, java - name: Download provider + tfgen binaries uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/prerequisites.yml b/.github/workflows/prerequisites.yml index 82a393bc..0d6efe71 100644 --- a/.github/workflows/prerequisites.yml +++ b/.github/workflows/prerequisites.yml @@ -34,7 +34,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 984a975d..2e5e9930 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -17,7 +17,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b25e193..3de77843 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 jobs: @@ -80,21 +79,10 @@ jobs: swap-storage: false - name: Checkout Repo uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 + - name: Setup tools + uses: ./.github/actions/setup-tools with: - go-version: "1.21.x" - cache-dependency-path: | - sdk/go.sum - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/actions@v5 - with: - pulumi-version: "dev" + tools: pulumictl, pulumicli, go - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -120,26 +108,15 @@ jobs: - publish runs-on: ubuntu-latest steps: + - name: Setup tools + uses: ./.github/actions/setup-tools + with: + tools: pulumicli, go, node, dotnet, python, java - name: Publish SDKs - uses: pulumi/pulumi-package-publisher@v0.0.18 + uses: pulumi/pulumi-package-publisher@v0.0.19 with: sdk: all version: ${{ needs.prerequisites.outputs.version }} - dotnet-version: "6.0.x" - java-version: "11" - node-version: "20.x" - python-version: "3.11.8" - - env: - SLACK_CHANNEL: provider-upgrade-publish-status - SLACK_COLOR: "#FF0000" - SLACK_ICON_EMOJI: ":taco:" - SLACK_MESSAGE: "Publish failed :x:" - SLACK_TITLE: ${{ github.event.repository.name }} upgrade result - SLACK_USERNAME: provider-bot - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() - name: Send Publish Failure To Slack - uses: rtCamp/action-slack-notify@v2 publish_go_sdk: name: publish_go_sdk needs: @@ -149,11 +126,6 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - name: Download Go SDK uses: actions/download-artifact@v4 with: @@ -208,44 +180,10 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.21.x" - cache-dependency-path: | - sdk/go.sum - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/actions@v5 - with: - pulumi-version: "dev" - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: "20.x" - registry-url: https://registry.npmjs.org - - name: Setup DotNet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "6.0.x" - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.11.8" - - name: Setup Java - uses: actions/setup-java@v4 - with: - cache: gradle - distribution: temurin - java-version: "11" - - name: Setup Gradle - uses: gradle/gradle-build-action@v3 + - name: Setup tools + uses: ./.github/actions/setup-tools with: - gradle-version: "7.6" + tools: pulumictl, pulumicli, go, node, dotnet, python, java - name: Download provider + tfgen binaries uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/resync-build.yml b/.github/workflows/resync-build.yml index 43bcfdd1..48713dd5 100644 --- a/.github/workflows/resync-build.yml +++ b/.github/workflows/resync-build.yml @@ -19,7 +19,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 jobs: @@ -37,34 +36,10 @@ jobs: - id: run-url name: Create URL to the run output run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> "$GITHUB_OUTPUT" - - name: Install Go - uses: actions/setup-go@v5 + - name: Setup tools + uses: ./.github/actions/setup-tools with: - go-version: "1.21.x" - cache-dependency-path: | - sdk/go.sum - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - tag: v0.0.46 - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/actions@v5 - with: - pulumi-version: "dev" - - name: Setup DotNet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "6.0.x" - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: "20.x" - registry-url: https://registry.npmjs.org - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.11.8" + tools: pulumictl, pulumicli, go, node, dotnet, python - name: Sync with ci-mgmt run: cp -r "ci-mgmt/provider-ci/providers/$PROVIDER/repo/." . - name: Remove ci-mgmt directory diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index d05d31cd..84ecbc9f 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -18,7 +18,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 diff --git a/.github/workflows/upgrade-bridge.yml b/.github/workflows/upgrade-bridge.yml index 3a840722..69c476ff 100644 --- a/.github/workflows/upgrade-bridge.yml +++ b/.github/workflows/upgrade-bridge.yml @@ -83,27 +83,3 @@ jobs: pr-reviewers: ${{ github.event.client_payload.pr-reviewers }} pr-description: ${{ github.event.client_payload.pr-description }} pr-title-prefix: ${{ github.event.client_payload.pr-title-prefix }} - - env: - SLACK_CHANNEL: provider-upgrade-publish-status - SLACK_COLOR: "#7CFC00" - SLACK_ICON_EMOJI: ":taco:" - SLACK_MESSAGE: >- - Upgrade succeeded :heart_decoration: - - PR opened at github.com/pulumi/${{ github.event.repository.name }}/pulls - SLACK_TITLE: ${{ github.event.repository.name }} upgrade result - SLACK_USERNAME: provider-bot - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - name: Send Upgrade Success To Slack - uses: rtCamp/action-slack-notify@v2 - - env: - SLACK_CHANNEL: provider-upgrade-publish-status - SLACK_COLOR: "#FF0000" - SLACK_ICON_EMOJI: ":taco:" - SLACK_MESSAGE: " Upgrade failed :x:" - SLACK_TITLE: ${{ github.event.repository.name }} upgrade result - SLACK_USERNAME: provider-bot - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() - name: Send Upgrade Failure To Slack - uses: rtCamp/action-slack-notify@v2 diff --git a/.github/workflows/upgrade-provider.yml b/.github/workflows/upgrade-provider.yml index 04f7d6ab..02437beb 100644 --- a/.github/workflows/upgrade-provider.yml +++ b/.github/workflows/upgrade-provider.yml @@ -15,30 +15,6 @@ jobs: kind: all email: bot@pulumi.com username: pulumi-bot - - env: - SLACK_CHANNEL: provider-upgrade-publish-status - SLACK_COLOR: "#7CFC00" - SLACK_ICON_EMOJI: ":taco:" - SLACK_MESSAGE: >- - Upgrade succeeded :heart_decoration: - - PR opened at github.com/pulumi/${{ github.event.repository.name }}/pulls - SLACK_TITLE: ${{ github.event.repository.name }} upgrade result - SLACK_USERNAME: provider-bot - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - name: Send Upgrade Success To Slack - uses: rtCamp/action-slack-notify@v2 - - env: - SLACK_CHANNEL: provider-upgrade-publish-status - SLACK_COLOR: "#FF0000" - SLACK_ICON_EMOJI: ":taco:" - SLACK_MESSAGE: " Upgrade failed :x:" - SLACK_TITLE: ${{ github.event.repository.name }} upgrade result - SLACK_USERNAME: provider-bot - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() - name: Send Upgrade Failure To Slack - uses: rtCamp/action-slack-notify@v2 name: Upgrade provider on: issues: diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index 873b4889..d46da545 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -40,7 +40,6 @@ env: SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi XYZ_REGION: us-west-2 @@ -60,6 +59,8 @@ jobs: uses: actions/checkout@v4 - name: Setup tools uses: ./.github/actions/setup-tools + with: + tools: pulumicli, go, node, dotnet, python, java - name: Verify nodejs release uses: pulumi/verify-provider-release@v1 with: