File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ name: Database Export
2
2
3
3
on :
4
4
workflow_dispatch : # Add a run button on GitHub
5
- push :
6
- tags :
7
- - " *"
5
+ release :
6
+ types : [published]
7
+ schedule :
8
+ - cron : " 2 22,11 * * *"
8
9
9
10
jobs :
10
11
build :
63
64
with :
64
65
name : warnings-errors
65
66
path : warnings_errors.log
67
+
68
+ - name : Send mail
69
+ if : failure()
70
+ uses : dawidd6/action-send-mail@v3
71
+ with :
72
+ server_address : ${{secrets.EMAIL_SERVER}}
73
+ server_port : ${{secrets.EMAIL_PORT}}
74
+ username : ${{secrets.EMAIL_USERNAME}}
75
+ password : ${{secrets.EMAIL_PASSWORD}}
76
+ subject : " FAILED: ${{github.repository}} database export job"
77
+ body : GitHub Actions database export job for ${{github.repository}} failed!
78
+ to : ${{secrets.EMAIL_LIST}}
79
+ from : ${{secrets.EMAIL_FROM}}
80
+ content_type : text/html
You can’t perform that action at this time.
0 commit comments