Skip to content

Commit a20317e

Browse files
committed
fix: fix slack notification for marketplace release pipeline
1 parent f2cda7f commit a20317e

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/MarketplaceRelease.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,11 @@ jobs:
4949
TAG: ${{ steps.variables.outputs.tag }}
5050
- name: "Send slack msg on failure"
5151
if: ${{ failure() }}
52-
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # v2
53-
env:
54-
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
55-
SLACK_COLOR: ${{ job.status }}
56-
SLACK_ICON: ${{ secrets.BOT_IMAGE }}
57-
SLACK_MESSAGE: "Something went wrong while uploading version ${{ steps.scope.outputs._1 }} of package ${{ steps.scope.outputs._0 }} to the marketplace. <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|More info..>"
58-
SLACK_TITLE: ":warning: *Automation Failed*"
59-
SLACK_USERNAME: ${{ secrets.BOT_NAME }}
60-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
61-
SLACK_FOOTER: ${{ secrets.BOT_FOOTER }}
62-
MSG_MINIMAL: true
52+
uses: ./.github/actions/slack-notification
53+
with:
54+
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
55+
message: |
56+
:warning: *Automation Failed*
57+
58+
Something went wrong while uploading version ${{ steps.scope.outputs._1 }} of package ${{ steps.scope.outputs._0 }} to the marketplace. <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|More info..>
59+
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)