添加 GitHub Actions 工作流以发送邮件通知
This commit is contained in:
18
.github/workflows/send-email.yaml.off
vendored
Normal file
18
.github/workflows/send-email.yaml.off
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
send-mail:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Send mail
|
||||||
|
uses: dawidd6/action-send-mail@v3
|
||||||
|
with:
|
||||||
|
connection_url: ${{secrets.MAIL_CONNECTION}}
|
||||||
|
subject: Github Actions job result
|
||||||
|
to: obiwan@oo1.dev,yoda@oo1.dev
|
||||||
|
from: Luke Skywalker
|
||||||
|
# body: Build job of ${{github.repository}} completed successfully!
|
||||||
|
attachments: ./*.txt
|
||||||
|
priority: high
|
Reference in New Issue
Block a user