diff --git a/.github/workflows/check-upstream-upgrade.yml b/.github/workflows/check-upstream-upgrade.yml index 2ab25395a..98cbc4ea3 100644 --- a/.github/workflows/check-upstream-upgrade.yml +++ b/.github/workflows/check-upstream-upgrade.yml @@ -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 @@ -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 @@ -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