Skip to content

Commit 4a40730

Browse files
committed
Update Git
1 parent 2e9e883 commit 4a40730

2 files changed

Lines changed: 59 additions & 18 deletions

File tree

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -108,25 +108,25 @@ jobs:
108108
# tags: ${{ steps.meta.outputs.tags }}
109109
# labels: ${{ steps.meta.outputs.labels }}
110110

111-
alert:
112-
name: Alerts
113-
needs: docker
114-
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
115-
runs-on: ubuntu-latest
116-
steps:
117-
- uses: actions/checkout@v3
111+
# alert:
112+
# name: Alerts
113+
# needs: docker
114+
# # if: ${{ github.event.workflow_run.conclusion == 'failure' }}
115+
# runs-on: ubuntu-latest
116+
# steps:
117+
# - uses: actions/checkout@v3
118118

119-
- name: Post to a Slack channel
120-
uses: 8398a7/action-slack@v3
121-
with:
122-
status: ${{ job.status }}
123-
author_name: Montoring-Slack from GitHub Actions
124-
fields: repo,message,commit,author,action,eventName,ref,workflow,took # selectable (default: repo,commit,message,author)\
125-
mention: here
126-
if_mention: failure,cancelled
127-
env:
128-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
129-
if: always() # Pick up events even if the job fails or is canceled.
119+
# - name: Post to a Slack channel
120+
# uses: 8398a7/action-slack@v3
121+
# with:
122+
# status: ${{ job.status }}
123+
# author_name: Montoring-Slack from GitHub Actions
124+
# fields: repo,message,commit,author,action,eventName,ref,workflow,took # selectable (default: repo,commit,message,author)\
125+
# mention: here
126+
# if_mention: failure,cancelled
127+
# env:
128+
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
129+
# if: always() # Pick up events even if the job fails or is canceled.
130130

131131

132132
# - name: Slack Notification

.github/workflows/slack.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
name: Slan Notify
3+
4+
on:
5+
push:
6+
branches: ["master"]
7+
pull_request:
8+
branches: ["master"]
9+
10+
jobs:
11+
alert:
12+
name: Alerts
13+
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Post to a Slack channel
19+
uses: 8398a7/action-slack@v3
20+
with:
21+
status: ${{ job.status }}
22+
author_name: Montoring-Slack from GitHub Actions
23+
fields: repo,message,commit,author,action,eventName,ref,workflow,took # selectable (default: repo,commit,message,author)\
24+
mention: here
25+
if_mention: failure,cancelled
26+
env:
27+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
28+
if: always() # Pick up events even if the job fails or is canceled.
29+
30+
31+
# - name: Slack Notification
32+
# uses: rtCamp/action-slack-notify@v2
33+
# env:
34+
# SLACK_CHANNEL: alert
35+
# SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff'
36+
# # SLACK_ICON: https://github.com/rtCamp.png?size=48
37+
# SLACK_MESSAGE: 'Post Content :rocket:'
38+
# SLACK_TITLE: Post Title
39+
# SLACK_USERNAME: alert
40+
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
41+

0 commit comments

Comments
 (0)