diff --git a/.github/workflows/notify-failed-build.yml b/.github/workflows/notify-failed-build.yml index febc50bdd..c0c4e76e3 100644 --- a/.github/workflows/notify-failed-build.yml +++ b/.github/workflows/notify-failed-build.yml @@ -26,23 +26,12 @@ jobs: { "attachments": [ { - "text": "${{ inputs.label }} ${{ inputs.link }}", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "${{ inputs.label }} ${{ inputs.link }}" - } - } - ], - "pretext": "Build Failed", "color": "f0190a", "fields": [ { - "title": "Status", + "title": "${{ inputs.label }} ${{ inputs.link }}", "short": true, - "value": "Completed" + "value": "Failed" } ] } diff --git a/.github/workflows/test-slack-message.yml b/.github/workflows/test-slack-message.yml index b5bcc0f8a..9e66ec0cc 100644 --- a/.github/workflows/test-slack-message.yml +++ b/.github/workflows/test-slack-message.yml @@ -4,32 +4,32 @@ on: workflow_dispatch: jobs: - slack-message: - name: Send slack message - runs-on: ubuntu-latest - steps: - - id: slack - uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 - env: - SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }} - with: - channel-id: "C0188MENU2J" - payload: | - { - "text": "Test message title `Version` is available now", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Test Message text `Version` is available now" - } - } - ] - } +# slack-message: +# name: Send slack message +# runs-on: ubuntu-latest +# steps: +# - id: slack +# uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 +# env: +# SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }} +# with: +# channel-id: "C0188MENU2J" +# payload: | +# { +# "text": "Test message title `Version` is available now", +# "blocks": [ +# { +# "type": "section", +# "text": { +# "type": "mrkdwn", +# "text": "Test Message text `Version` is available now" +# } +# } +# ] +# } notify-failure: - needs: [ slack-message ] +# needs: [ slack-message ] uses: ./.github/workflows/notify-failed-build.yml with: link: '[${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})'