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