forked from github/plane
fix: remove slack notify (#2871)
* fix: remove slack notifications on workflows * fix: bugfix
This commit is contained in:
parent
1bd38ad4c7
commit
ecea744657
65
.github/workflows/build-branch.yml
vendored
65
.github/workflows/build-branch.yml
vendored
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user