From 06564ee8562ac6cf9213ba9b1cb67a086ae47e41 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Fri, 24 Nov 2023 14:31:44 +0530 Subject: [PATCH] fix: remove slack notify (#2871) * fix: remove slack notifications on workflows * fix: bugfix --- .github/workflows/build-branch.yml | 65 ------------------------------ 1 file changed, 65 deletions(-) diff --git a/.github/workflows/build-branch.yml b/.github/workflows/build-branch.yml index 724320e97..1c693ddcf 100644 --- a/.github/workflows/build-branch.yml +++ b/.github/workflows/build-branch.yml @@ -86,38 +86,6 @@ jobs: !./nginx !./deploy !./web - - name: Send GitHub Action trigger data to Slack workflow - if: ${{ job.status == 'success' }} - id: slackSuccess - uses: slackapi/slack-github-action@v1.24.0 - with: - payload: | - { - "repo_name": "${{ github.repository }}", - "redirect_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "action_name": "${{ github.workflow }}", - "job_name": "${{ github.job }}", - "status": "✅ ${{ job.status }}", - "message": "${{ github.event.pull_request.title }} " - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} - - name: Send GitHub Action trigger data to Slack workflow - if: ${{ job.status == 'failure' }} - id: slackFailed - uses: slackapi/slack-github-action@v1.24.0 - with: - payload: | - { - "repo_name": "${{ github.repository }}", - "redirect_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "action_name": "${{ github.workflow }}", - "job_name": "${{ github.job }}", - "status": "❌ ${{ job.status }}", - "message": "${{ github.event.pull_request.title }}" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} outputs: gh_branch_name: ${{ steps.gh_branch_clean.outputs.value }} @@ -151,39 +119,6 @@ jobs: DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Send GitHub Action trigger data to Slack workflow - if: ${{ job.status == 'success' }} - id: slackSuccess - uses: slackapi/slack-github-action@v1.24.0 - with: - payload: | - { - "repo_name": "${{ github.repository }}", - "redirect_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "action_name": "${{ github.workflow }}", - "job_name": "${{ github.job }}", - "status": "✅ ${{ job.status }}", - "message": "${{ github.event.pull_request.title }} " - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} - - name: Send GitHub Action trigger data to Slack workflow - if: ${{ job.status == 'failure' }} - id: slackFailed - uses: slackapi/slack-github-action@v1.24.0 - with: - payload: | - { - "repo_name": "${{ github.repository }}", - "redirect_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "action_name": "${{ github.workflow }}", - "job_name": "${{ github.job }}", - "status": "❌ ${{ job.status }}", - "message": "${{ github.event.pull_request.title }}" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} - branch_build_push_space: runs-on: ubuntu-20.04 needs: [branch_build_and_push]