Skip to content

Commit 9ff126a

Browse files
committed
Implement similar to prior done changes to mail sending setup to build workflow template
Note that it also upgrades from v4 to v6 (commit)
1 parent 8a20133 commit 9ff126a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/template/build-{{ostype}}.yaml.j2

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,16 @@ jobs:
354354

355355
- name: Send e-mail on failed run
356356
if: failure() && contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name)
357-
uses: dawidd6/action-send-mail@v4
357+
# freeze to v6
358+
uses: dawidd6/action-send-mail@6d98ae34d733f9a723a9e04e94f2f24ba05e1402
358359
with:
359360
server_address: ${{ secrets.NOTIFY_SMTP_HOST }}
360361
server_port: ${{ secrets.NOTIFY_SMTP_PORT }}
361362
username: ${{ secrets.NOTIFY_SMTP_USERNAME }}
362363
password: ${{ secrets.NOTIFY_SMTP_PASSWORD }}
363-
from: GitHub Actions Notifications
364+
secure: ${{ secrets.NOTIFY_SMTP_SECURE }}
365+
ignore_cert: ${{ secrets.NOTIFY_SMTP_IGNORE_CERT }}
366+
from: "GitHub Actions Notifications <${{ secrets.NOTIFY_SMTP_USERNAME }}@${{ secrets.NOTIFY_SMTP_HOST }}>"
364367
to: ${{ secrets.NOTIFY_RECIPIENT }}
365368
subject: '[${{ github.repository }}] Build on {{osname}} failed!'
366369
body: |
@@ -523,13 +526,16 @@ jobs:
523526

524527
- name: Send e-mail on failed run
525528
if: failure() && contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name)
526-
uses: dawidd6/action-send-mail@v4
529+
# freeze to v6
530+
uses: dawidd6/action-send-mail@6d98ae34d733f9a723a9e04e94f2f24ba05e1402
527531
with:
528532
server_address: ${{ secrets.NOTIFY_SMTP_HOST }}
529533
server_port: ${{ secrets.NOTIFY_SMTP_PORT }}
530534
username: ${{ secrets.NOTIFY_SMTP_USERNAME }}
531535
password: ${{ secrets.NOTIFY_SMTP_PASSWORD }}
532-
from: GitHub Actions Notifications
536+
secure: ${{ secrets.NOTIFY_SMTP_SECURE }}
537+
ignore_cert: ${{ secrets.NOTIFY_SMTP_IGNORE_CERT }}
538+
from: "GitHub Actions Notifications <${{ secrets.NOTIFY_SMTP_USERNAME }}@${{ secrets.NOTIFY_SMTP_HOST }}>"
533539
to: ${{ secrets.NOTIFY_RECIPIENT }}
534540
subject: '[${{ github.repository }}] Tests of {{osname}} build failed!'
535541
body: |

0 commit comments

Comments
 (0)