From bf61d9ef19163dc8b419fe5c62f3dedd44e20b03 Mon Sep 17 00:00:00 2001 From: Naba Kumar Das Date: Sat, 3 Feb 2024 01:33:44 +0530 Subject: [PATCH] Update Dalichecklist.yaml --- .github/workflows/Dalichecklist.yaml | 82 ++++++++++++++-------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/.github/workflows/Dalichecklist.yaml b/.github/workflows/Dalichecklist.yaml index 1ab3b31..548d5e0 100644 --- a/.github/workflows/Dalichecklist.yaml +++ b/.github/workflows/Dalichecklist.yaml @@ -25,45 +25,45 @@ jobs: echo "y" | docker image prune -a sudo rm -rf /tmp/django/ - name: notify slack - id: slack - uses: slackapi/slack-github-action@v1.24.0 - # https://api.slack.com/apps//incoming-webhooks - if: ${{ SUCCESS() }} - with: - channel-id: '#github_action_status' # slack channel #alerts-test - payload: | - { - "text": "GitHub Action failed", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "*Production deployment check failed* :fire_engine:\n High error rate detected after deployment! Rolling back..." - } - }, - { - "type": "actions", - "elements": [ - { - "type": "button", - "text": { - "type": "plain_text", - "text": ":github: Failed action" - }, - "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" - }, - { - "type": "button", - "text": { - "type": "plain_text", - "text": ":grafana: Grafana dashboard" - }, - "url": "https://.grafana.net/d/my-app-dashboard?from=now-1h&to=now" - } - ] + id: slack + uses: slackapi/slack-github-action@v1.24.0 + # https://api.slack.com/apps//incoming-webhooks + if: ${{ SUCCESS() }} + with: + channel-id: '#github_action_status' # slack channel #alerts-test + payload: | + { + "text": "GitHub Action failed", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Production deployment check failed* :fire_engine:\n High error rate detected after deployment! Rolling back..." } - ] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + }, + { + "type": "actions", + "elements": [ + { + "type": "button", + "text": { + "type": "plain_text", + "text": ":github: Failed action" + }, + "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + }, + { + "type": "button", + "text": { + "type": "plain_text", + "text": ":grafana: Grafana dashboard" + }, + "url": "https://.grafana.net/d/my-app-dashboard?from=now-1h&to=now" + } + ] + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}