@@ -16,8 +16,11 @@ name: Nightly Builds
16
16
17
17
on :
18
18
# Runs every day at 06:00 AM (PT) and 08:00 PM (PT) / 04:00 AM (UTC) and 02:00 PM (UTC)
19
+ # or on 'firebase_build' repository dispatch event.
19
20
schedule :
20
21
- cron : " 0 4,14 * * *"
22
+ repository_dispatch :
23
+ types : [firebase_build]
21
24
22
25
jobs :
23
26
nightly :
@@ -75,11 +78,11 @@ jobs:
75
78
domain : ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}
76
79
from : ' GitHub <admin-github@${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}>'
77
80
to : ${{ secrets.FIREBASE_ADMIN_GITHUB_EMAIL }}
78
- subject : ' [ ${{github.repository}}] Nightly build failed!'
81
+ subject : ' Nightly build ${{github.run_id}} of ${{github.repository}} failed!'
79
82
html : >
80
- <b>Nightly workflow failed on: ${{github.repository}}</b>
83
+ <b>Nightly workflow ${{github.run_id}} failed on: ${{github.repository}}</b>
81
84
<br /><br />Navigate to the
82
- <a href="https://github.com/firebase/firebase-admin-node/actions">failed workflow</a>.
85
+ <a href="https://github.com/firebase/firebase-admin-node/actions/runs/${{github.run_id}} ">failed workflow</a>.
83
86
continue-on-error : true
84
87
85
88
- name : Send email on cancelled
90
93
domain : ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}
91
94
from : ' GitHub <admin-github@${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}>'
92
95
to : ${{ secrets.FIREBASE_ADMIN_GITHUB_EMAIL }}
93
- subject : ' [ ${{github.repository}}] Nightly build got cancelled!'
96
+ subject : ' Nightly build ${{github.run_id}} of ${{github.repository}} cancelled!'
94
97
html : >
95
- <b>Nightly workflow cancelled on: ${{github.repository}}</b>
98
+ <b>Nightly workflow ${{github.run_id}} cancelled on: ${{github.repository}}</b>
96
99
<br /><br />Navigate to the
97
- <a href="https://github.com/firebase/firebase-admin-node/actions">cancelled workflow</a>.
100
+ <a href="https://github.com/firebase/firebase-admin-node/actions/runs/${{github.run_id}} ">cancelled workflow</a>.
98
101
continue-on-error : true
0 commit comments