Skip to content

Commit

Permalink
more failure verification
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Dec 5, 2023
1 parent 8ce91d4 commit b56b1ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/check-upstream-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ jobs:
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
Expand All @@ -22,7 +29,7 @@ jobs:
- name: Run upgrade-provider upstream check
id: upstream_version
run: |
upgrade-provider "$REPO" --kind=check-upstream-version
upgrade-provider "$REPO" --kind=misspell-upstream-version
env:
REPO: ${{ github.repository }}
shell: bash
Expand All @@ -38,7 +45,7 @@ jobs:
SLACK_USERNAME: provider-bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Send Check Version Failure To Slack
if: ${{ job.status == 'failure' }}
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: provider-upgrade-publish-status
Expand Down

0 comments on commit b56b1ee

Please sign in to comment.