Skip to content

Commit 7e24165

Browse files
added slack webhook to flow
1 parent beb827a commit 7e24165

File tree

2 files changed

+43
-34
lines changed

2 files changed

+43
-34
lines changed

.github/workflows/change-review.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,12 @@ jobs:
3535
3636
- name: upload coverage report to codecov
3737
uses: codecov/codecov-action@v2
38+
39+
- name: push build status as webhook to Slack
40+
uses: 8398a7/action-slack@v3
41+
with:
42+
status: ${{ job.status }}
43+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
44+
env:
45+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
46+
if: always()

.github/workflows/python-publish.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
name: Publish to PyPi
1+
# name: Publish to PyPi
22

3-
# on:
4-
# release:
5-
# types: [created]
3+
# # on:
4+
# # release:
5+
# # types: [created]
66

7-
on:
8-
push:
9-
branches: ['dev']
7+
# on:
8+
# push:
9+
# branches: ['dev']
1010

11-
jobs:
12-
check-docs-update:
13-
runs-on: ubuntu-latest
14-
env:
15-
OS: ubuntu-latest
16-
PYTHON: '3.7'
17-
steps:
18-
- uses: actions/checkout@v2
19-
- uses: technote-space/get-diff-action@v6
20-
with:
21-
# PATTERNS: |
22-
# +(documentation)/*.md
23-
# *.md
24-
FILES: |
25-
CHANGELOG.md
26-
README.md
27-
+(documentation)/*.md
28-
- name: log git diff
29-
run: |
30-
echo ${{ env.GIT_DIFF }}
31-
echo ${{ env.MATCHED_FILES }}
32-
echo ${{ env.GIT_DIFF_FILTERED }}
33-
- name: Check if README.md or Doc/** is updated else exit
34-
if: (env.GIT_DIFF == '')
35-
run: |
36-
echo Update documentation files or README.md before push
37-
exit 1
11+
# jobs:
12+
# check-docs-update:
13+
# runs-on: ubuntu-latest
14+
# env:
15+
# OS: ubuntu-latest
16+
# PYTHON: '3.7'
17+
# steps:
18+
# - uses: actions/checkout@v2
19+
# - uses: technote-space/get-diff-action@v6
20+
# with:
21+
# # PATTERNS: |
22+
# # +(documentation)/*.md
23+
# # *.md
24+
# FILES: |
25+
# CHANGELOG.md
26+
# README.md
27+
# +(documentation)/*.md
28+
# - name: log git diff
29+
# run: |
30+
# echo ${{ env.GIT_DIFF }}
31+
# echo ${{ env.MATCHED_FILES }}
32+
# echo ${{ env.GIT_DIFF_FILTERED }}
33+
# - name: Check if README.md or Doc/** is updated else exit
34+
# if: (env.GIT_DIFF == '')
35+
# run: |
36+
# echo Update documentation files or README.md before push
37+
# exit 1
3838

3939

4040
# distribute:

0 commit comments

Comments
 (0)