From 97c2c4eb947cd90a011995d0571056c89c9e7dc4 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Thu, 14 Dec 2023 13:54:29 -0800 Subject: [PATCH] Update GitHub Actions workflows. (#228) This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 1ac5f3d5c2dd8d66e283c21ed5b90a132cddc6c9. --- .github/workflows/check-upstream-upgrade.yml | 54 ++++++++++++++++++++ 1 file changed, 54 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 00000000..192c338a --- /dev/null +++ b/.github/workflows/check-upstream-upgrade.yml @@ -0,0 +1,54 @@ + +#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: Install Go + uses: actions/setup-go@v4 + with: + cache-dependency-path: | + sdk/go.sum + go-version: 1.21.x + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Unshallow clone for tags + run: git fetch --prune --unshallow --tags + shell: bash + - 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: 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. + schedule: + # 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours. + - cron: 0 3 * * *