-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use generated workflow to check for issues
- Loading branch information
1 parent
b86228e
commit 287a9f3
Showing
1 changed file
with
43 additions
and
51 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,53 @@ | ||
# 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@v3 | ||
with: | ||
go-version: 1.21.x | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
- 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@76b9fab627d8c180d280ac234feebce80f8dc076 | ||
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 | ||
run: | | ||
upgrade-provider "$REPO" --kind=check-upstream-version | ||
env: | ||
REPO: ${{ github.repository }} | ||
shell: bash | ||
- name: Report success | ||
if: ${{ job.status == 'success' }} | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_CHANNEL: provider-upgrade-publish-status | ||
SLACK_COLOR: "#FF0000" | ||
SLACK_ICON_EMOJI: ":tada:" | ||
SLACK_MESSAGE: " Successfully checked for upstream version " | ||
SLACK_TITLE: ${{ github.event.repository.name }} upstream version check | ||
SLACK_USERNAME: provider-bot | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
- 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: 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 [email protected] | ||
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: {} | ||
|
||
schedule: | ||
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours. | ||
- cron: 0 3 * * * |