From 535b222b607d4635e1f0a39c4aa359fa5a8c6724 Mon Sep 17 00:00:00 2001 From: Pulumi Bot Date: Tue, 17 Oct 2023 05:40:19 +0000 Subject: [PATCH] [internal] Update GitHub Actions workflow files --- .github/workflows/upgrade-bridge.yml | 53 +++++++++++++++++++++----- .github/workflows/upgrade-provider.yml | 2 +- .upgrade-config.yml | 1 - scripts/upstream.sh | 1 - 4 files changed, 44 insertions(+), 13 deletions(-) diff --git a/.github/workflows/upgrade-bridge.yml b/.github/workflows/upgrade-bridge.yml index e3c3e9cf..182a76e6 100644 --- a/.github/workflows/upgrade-bridge.yml +++ b/.github/workflows/upgrade-bridge.yml @@ -1,5 +1,32 @@ # WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt +name: Upgrade bridge +on: + repository_dispatch: + types: + - upgrade-bridge + workflow_dispatch: + inputs: + target-bridge-version: + description: pulumi-terraform-bridge version or hash reference + required: false + type: string + default: "latest" + pr-reviewers: + description: Reviewers to assign to the auto-opened pull request + required: false + type: string + default: "" + pr-description: + description: Extra description to add to the auto-opened pull request + required: false + type: string + default: "" + automerge: + description: Mark created PR for auto-merging? + required: false + type: boolean + default: false env: GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -9,12 +36,27 @@ jobs: runs-on: ubuntu-latest steps: - name: Call upgrade provider action - uses: pulumi/pulumi-upgrade-provider-action@v0.0.8 + if: github.event_name == 'workflow_dispatch' + uses: pulumi/pulumi-upgrade-provider-action@v0.0.9 with: kind: bridge email: bot@pulumi.com username: pulumi-bot automerge: ${{ inputs.automerge }} + target-bridge-version: ${{ inputs.target-bridge-version }} + pr-reviewers: ${{ inputs.pr-reviewers }} + pr-description: ${{ inputs.pr-description }} + - name: Call upgrade provider action + if: github.event_name == 'repository_dispatch' + uses: pulumi/pulumi-upgrade-provider-action@v0.0.9 + with: + kind: bridge + email: bot@pulumi.com + username: pulumi-bot + automerge: ${{ github.event.client_payload.automerge }} + target-bridge-version: ${{ github.event.client_payload.target-bridge-version }} + pr-reviewers: ${{ github.event.client_payload.pr-reviewers }} + pr-description: ${{ github.event.client_payload.pr-description }} - env: SLACK_CHANNEL: provider-upgrade-publish-status SLACK_COLOR: "#7CFC00" @@ -39,12 +81,3 @@ jobs: if: failure() name: Send Upgrade Failure To Slack uses: rtCamp/action-slack-notify@v2 -name: Upgrade bridge -on: - workflow_dispatch: - inputs: - automerge: - description: Mark created PR for auto-merging? - required: false - type: boolean - default: false diff --git a/.github/workflows/upgrade-provider.yml b/.github/workflows/upgrade-provider.yml index 39972938..9c9cd5ae 100644 --- a/.github/workflows/upgrade-provider.yml +++ b/.github/workflows/upgrade-provider.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Call upgrade provider action - uses: pulumi/pulumi-upgrade-provider-action@v0.0.8 + uses: pulumi/pulumi-upgrade-provider-action@v0.0.9 with: kind: all email: bot@pulumi.com diff --git a/.upgrade-config.yml b/.upgrade-config.yml index f2c37912..719827ac 100644 --- a/.upgrade-config.yml +++ b/.upgrade-config.yml @@ -5,5 +5,4 @@ upstream-provider-name: terraform-provider-kafka pulumi-infer-version: true remove-plugins: true pr-reviewers: pulumi/Providers,lukehoban - javaVersion: "v0.9.5" diff --git a/scripts/upstream.sh b/scripts/upstream.sh index eddab76e..c455b465 100644 --- a/scripts/upstream.sh +++ b/scripts/upstream.sh @@ -1,4 +1,3 @@ -# # WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt set -e