Skip to content

Commit 4b8d3bd

Browse files
authored
Merge pull request #1617 from synthetichealth/no_slack
Remove Slack notifications from build and deploy processes.
2 parents 9363a45 + 25fae62 commit 4b8d3bd

File tree

2 files changed

+0
-56
lines changed

2 files changed

+0
-56
lines changed

.github/workflows/ci-build-test.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,6 @@ jobs:
2626
- name: Compile with Gradle
2727
run: ./gradlew assemble
2828

29-
- name: Slack Notification
30-
uses: 8398a7/action-slack@v3
31-
if: always() && env.SLACK_WEBHOOK_URL
32-
with:
33-
status: custom
34-
job_name: Java 17
35-
author_name: Java 17 Build
36-
fields: workflow,commit,repo,author,took
37-
# see https://action-slack.netlify.app/usecase/02-custom for custom payload info
38-
custom_payload: |
39-
{
40-
attachments: [{
41-
color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning',
42-
text: `${process.env.AS_WORKFLOW} -- (${process.env.AS_COMMIT}) of ${process.env.AS_REPO}@${{ github.head_ref || github.ref }} by ${process.env.AS_AUTHOR} ${{ job.status }} in ${process.env.AS_TOOK}`,
43-
}]
44-
}
45-
env:
46-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
47-
48-
4929
check_java11:
5030
runs-on: ubuntu-latest
5131
name: Java 11
@@ -77,21 +57,3 @@ jobs:
7757
- name: Code coverage
7858
uses: codecov/codecov-action@v3
7959

80-
- name: Slack Notification
81-
uses: 8398a7/action-slack@v3
82-
if: always() && env.SLACK_WEBHOOK_URL
83-
with:
84-
status: custom
85-
job_name: Java 11
86-
author_name: Java 11 Build/Test
87-
fields: workflow,commit,repo,author,took
88-
# see https://action-slack.netlify.app/usecase/02-custom for custom payload info
89-
custom_payload: |
90-
{
91-
attachments: [{
92-
color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning',
93-
text: `${process.env.AS_WORKFLOW} -- (${process.env.AS_COMMIT}) of ${process.env.AS_REPO}@${{ github.head_ref || github.ref }} by ${process.env.AS_AUTHOR} ${{ job.status }} in ${process.env.AS_TOOK}`,
94-
}]
95-
}
96-
env:
97-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/deploy.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,3 @@ jobs:
9999
target-directory: 'downloads/latest'
100100
target-branch: main
101101

102-
- name: Slack Notification on Failure
103-
uses: 8398a7/action-slack@v3
104-
if: failure()
105-
with:
106-
status: custom
107-
job_name: Deploy
108-
author_name: Deploy Workflow
109-
fields: workflow,commit,repo,author,took
110-
# see https://action-slack.netlify.app/usecase/02-custom for custom payload info
111-
custom_payload: |
112-
{
113-
attachments: [{
114-
color: 'danger',
115-
text: `${process.env.AS_WORKFLOW} -- (${process.env.AS_COMMIT}) of ${process.env.AS_REPO}@master by ${process.env.AS_AUTHOR} ${{ job.status }} in ${process.env.AS_TOOK}`,
116-
}]
117-
}
118-
env:
119-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)