-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.65 KB
/
send-pdfs-to-kindle.yaml
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
42
43
44
45
46
47
name: send-pdfs-to-kindle
run-name: ${{ github.actor }} - PDF Uploaded
on:
push:
paths:
- OMSCS/Courses/**
jobs:
send-to-kindle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: PDF filter.
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
newpdfs:
- added|modified: '**/*.pdf'
list-files: 'csv'
- name: Send mail
if: steps.filter.outputs.newpdfs == 'true'
uses: dawidd6/action-send-mail@v3
with:
# Required mail server address if not connection_url:
server_address: ${{secrets.SMTP_ADDRESS}}
# Optional whether this connection use TLS (default is true if server_port is 465)
secure: true
# Optional (recommended) mail server username:
username: ${{secrets.MAIL_USERNAME}}
# Optional (recommended) mail server password:
password: ${{secrets.MAIL_PASSWORD}}
# Required mail subject:
subject: Github Actions job result
# Required recipients' addresses:
to: ${{secrets.KINDLE_EMAIL_ADDRESS}}
# Required sender full name (address can be skipped):
from: Austin's PDF Sending GitHub Action
# Optional plain body:
body: A new PDF has been uploaded to your notebook repository.
# Optional carbon copy recipients:
# Optional recipient of the email response:
reply_to: [email protected]
# Optional unsigned/invalid certificates allowance:
ignore_cert: true
# Optional attachments:
attachments: ${{ steps.filter.outputs.newpdfs_files }}