From c1ca83b2546d3cc505fbad876a110b92140a3db0 Mon Sep 17 00:00:00 2001 From: guineveresaenger Date: Mon, 4 Nov 2024 13:41:39 -0800 Subject: [PATCH] Skip upgrade workflow due to #200 --- .ci-mgmt.yaml | 1 + .github/workflows/upgrade-provider.yml | 61 -------------------------- 2 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 .github/workflows/upgrade-provider.yml diff --git a/.ci-mgmt.yaml b/.ci-mgmt.yaml index b032a18..f0a68c8 100644 --- a/.ci-mgmt.yaml +++ b/.ci-mgmt.yaml @@ -17,3 +17,4 @@ plugins: team: ecosystem pulumiConvert: 1 registryDocs: true +checkUpstreamUpgrade: false diff --git a/.github/workflows/upgrade-provider.yml b/.github/workflows/upgrade-provider.yml deleted file mode 100644 index f865166..0000000 --- a/.github/workflows/upgrade-provider.yml +++ /dev/null @@ -1,61 +0,0 @@ -# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt - -name: Upgrade provider -on: - workflow_dispatch: - inputs: - version: - description: | - The version of the upstream provider to upgrade to, without the 'v' prefix - - If no version is specified, it will be inferred from the upstream provider's release tags. - required: false - type: string - schedule: - # 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours. - - cron: 0 3 * * * - -env: - GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -jobs: - upgrade_provider: - name: upgrade-provider - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - # Persist credentials so upgrade-provider can push a new branch. - persist-credentials: true - - name: Setup tools - uses: ./.github/actions/setup-tools - with: - tools: pulumictl, pulumicli, go, nodejs, dotnet, python, java - - name: Install upgrade-provider - run: go install github.com/pulumi/upgrade-provider@main - shell: bash - - name: "Set up git identity" - run: | - git config --global user.name 'bot@pulumi.com' - git config --global user.email 'bot@pulumi.com' - shell: bash - - name: Create issues for new upstream version - if: inputs.version == '' - id: upstream_version - # This step outputs `latest_version` if there is a pending upgrade - run: upgrade-provider "$REPO" --kind=check-upstream-version - env: - REPO: ${{ github.repository }} - shell: bash - - name: Calculate target version - id: target_version - # Prefer the manually specified version if it exists - # upstream_version will be empty if the provider is up-to-date - run: echo "version=${{ github.event.inputs.version || steps.upstream_version.outputs.latest_version }}" >> "$GITHUB_OUTPUT" - shell: bash - - name: Attempt provider upgrade - # Only attempt the upgrade if we have a target version - if: steps.target_version.outputs.version != '' - run: upgrade-provider "${{ github.repository }}" --kind="all" --target-version="${{ steps.target_version.outputs.version }}" - shell: bash