From ebf8d74de41d994e500ba1f249ea33d781e8dd95 Mon Sep 17 00:00:00 2001 From: Ringo De Smet Date: Wed, 9 Oct 2024 17:29:15 +0200 Subject: [PATCH] Moved because the combination of check-upstream-upgrade and upgrade-provider require pulumi-bot --- .../workflows/check-upstream-upgrade.yml | 0 .../.github/workflows/upgrade-provider.yml | 0 .../workflows/check-upstream-upgrade.yml | 38 ------------------- .../.github/workflows/upgrade-provider.yml | 34 ----------------- 4 files changed, 72 deletions(-) rename provider-ci/internal/pkg/templates/{bridged-provider => pulumi-provider}/.github/workflows/check-upstream-upgrade.yml (100%) rename provider-ci/internal/pkg/templates/{bridged-provider => pulumi-provider}/.github/workflows/upgrade-provider.yml (100%) delete mode 100644 provider-ci/test-providers/acme/.github/workflows/check-upstream-upgrade.yml delete mode 100644 provider-ci/test-providers/acme/.github/workflows/upgrade-provider.yml diff --git a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/check-upstream-upgrade.yml b/provider-ci/internal/pkg/templates/pulumi-provider/.github/workflows/check-upstream-upgrade.yml similarity index 100% rename from provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/check-upstream-upgrade.yml rename to provider-ci/internal/pkg/templates/pulumi-provider/.github/workflows/check-upstream-upgrade.yml diff --git a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/upgrade-provider.yml b/provider-ci/internal/pkg/templates/pulumi-provider/.github/workflows/upgrade-provider.yml similarity index 100% rename from provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/upgrade-provider.yml rename to provider-ci/internal/pkg/templates/pulumi-provider/.github/workflows/upgrade-provider.yml diff --git a/provider-ci/test-providers/acme/.github/workflows/check-upstream-upgrade.yml b/provider-ci/test-providers/acme/.github/workflows/check-upstream-upgrade.yml deleted file mode 100644 index a4d997bc0..000000000 --- a/provider-ci/test-providers/acme/.github/workflows/check-upstream-upgrade.yml +++ /dev/null @@ -1,38 +0,0 @@ - -#WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt - -env: - GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} -jobs: - check_upgrade_provider: - name: Check for upstream provider upgrades - runs-on: ubuntu-latest - steps: - - 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 - - name: "Set up git identity: name" - run: git config --global user.name pulumi-bot - shell: bash - - name: "Set up git identity: email" - run: git config --global user.email bot@pulumi.com - shell: bash - - name: Run upgrade-provider upstream check - id: upstream_version - run: | - upgrade-provider "$REPO" --kind=check-upstream-version - env: - REPO: ${{ github.repository }} - shell: bash -name: Check upstream upgrade -on: - workflow_dispatch: {} #so we can run this manually if necessary. - schedule: - # 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours. - - cron: 0 3 * * * diff --git a/provider-ci/test-providers/acme/.github/workflows/upgrade-provider.yml b/provider-ci/test-providers/acme/.github/workflows/upgrade-provider.yml deleted file mode 100644 index 29115ec16..000000000 --- a/provider-ci/test-providers/acme/.github/workflows/upgrade-provider.yml +++ /dev/null @@ -1,34 +0,0 @@ -# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt - -env: - GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -jobs: - upgrade_provider: - if: ${{ (github.event.issue.user.login == 'pulumi-bot' && contains(github.event.issue.title, 'Upgrade terraform-provider-')) || github.event_name == 'workflow_dispatch' }} - name: upgrade-provider - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - - 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: name" - run: | - git config --global user.name 'bot@pulumi.com' - git config --global user.email 'bot@pulumi.com' - shell: bash - - name: Run upgrade-provider - run: upgrade-provider "${{ github.repository }}" --kind="all" - shell: bash -name: Upgrade provider -on: - issues: - types: - - opened - workflow_dispatch: {}