forked from hashgraph/hedera-improvement-proposal
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.23 KB
/
send-email.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Send status email
on:
workflow_dispatch:
inputs:
filename:
description: "Filename"
type: string
required: true
status:
description: "Status"
type: string
required: true
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
StatusChangeNotifications:
runs-on: improvement-proposals-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- name: Send mail
uses: step-security/action-send-mail@a995831af980a0a14953f75efec85509f5315e25 # v3.12.0
with:
server_address: smtp.gmail.com
server_port: 465
username: [email protected]
password: ${{ secrets.GOOGLE_APP_PASS }}
subject: ${{ github.event.inputs.filename }} moved into ${{ github.event.inputs.status }}
to: ${{ secrets.LAST_CALL_EMAILS }}
from: The HIPs repository
body: This is an automated message, please do not reply. Check https://hips.hedera.com/hip/${{ github.event.inputs.filename }} for more info. Thank you.
secure: true
priority: medium