From 55f635cb75449bb55fdd1ecf50e12393f008793f Mon Sep 17 00:00:00 2001 From: Ringo De Smet Date: Mon, 7 Oct 2024 17:32:01 +0200 Subject: [PATCH] Adding generated `check-upstream-upgrade` workflow --- .github/workflows/check-upstream-upgrade.yml | 44 ++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/check-upstream-upgrade.yml diff --git a/.github/workflows/check-upstream-upgrade.yml b/.github/workflows/check-upstream-upgrade.yml new file mode 100644 index 0000000..cf804dc --- /dev/null +++ b/.github/workflows/check-upstream-upgrade.yml @@ -0,0 +1,44 @@ + +#WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + +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 * * * + +env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + check_upgrade_provider: + name: Check for upstream provider upgrades + permissions: + contents: read + issues: write + 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