-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.62 KB
/
mail.yaml
File metadata and controls
40 lines (38 loc) · 1.62 KB
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
name: Daily Update
on:
push:
schedule:
- cron: '00 09 * * *'
jobs:
update:
name: Send Update
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Python Dependencies
run: pip install --user tweepy pillow sympy
- name: Install LaTeX and ImageMagick
run: sudo apt-get -y install texlive texlive-extra-utils texlive-latex-extra imagemagick
- name: Fix ImageMagick Policy
run: sudo sed -i 's/rights="none" pattern="PDF"/rights="read | write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml
- name: Run Script
run: python3 twitter_bot/boinc_notifier.py
env:
CONSUMER_TOKEN: ${{ secrets.CONSUMER_TOKEN }}
CONSUMER_SECRET: ${{ secrets.CONSUMER_SECRET }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
MAIL_USERNAME: ${{ secrets. MAIL_USERNAME }}
MAIL_PASSWORD: ${{ secrets. MAIL_PASSWORD }}
MAIL_SERVER: ${{ secrets. MAIL_SERVER }}
- name: Update Repository
run: |
git config --global user.name 'Actions Bot'
git config --global user.email 'action@github.com'
git commit -am "Automated post-notifier update"
git push