fix: remove slack notify (#2871)

* fix: remove slack notifications on workflows

* fix: bugfix
This commit is contained in:
sriram veeraghanta 2023-11-24 14:31:44 +05:30 committed by GitHub
parent c7e6118804
commit 06564ee856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]