Check upstream upgrade #276
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 [email protected] | |
shell: bash | |
- name: Run upgrade-provider upstream check | |
id: upstream_version | |
# Using --repo-path=. skips git pull steps since the Checkout Repo steps has done those. | |
run: | | |
upgrade-provider "$REPO" --kind=check-upstream-version --repo-path=. | |
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 * * * |