File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 15
15
- run : npm i
16
16
- run : npm run build
17
17
- run : npm test
18
+ - name : Send mail on fail
19
+ uses : dawidd6/action-send-mail@v2
20
+ if : ${{ failure() }}
21
+ with :
22
+ server_address : smtp.gmail.com
23
+ server_port : 465
24
+ username : ${{secrets.MAIL_USERNAME}}
25
+ password : ${{secrets.MAIL_PASSWORD}}
26
+ subject : Github Actions job result
27
+ body : Test job of ${{github.repository}} failed!
28
+ to : ${{secrets.MAIL_TARGET}}
29
+ from : Github Actions
18
30
19
31
publish-npm :
20
32
needs : build
30
42
- run : npm publish
31
43
env :
32
44
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
45
+ - name : Send mail on fail
46
+ uses : dawidd6/action-send-mail@v2
47
+ if : ${{ failure() }}
48
+ with :
49
+ server_address : smtp.gmail.com
50
+ server_port : 465
51
+ username : ${{secrets.MAIL_USERNAME}}
52
+ password : ${{secrets.MAIL_PASSWORD}}
53
+ subject : Github Actions job result
54
+ body : Publish job of ${{github.repository}} failed!
55
+ to : ${{secrets.MAIL_TARGET}}
56
+ from : Github Actions
You can’t perform that action at this time.
0 commit comments