-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.4 KB
/
github-actions-wa-events.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Events to .ics workflow
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *' #Runs every day at 2:00 AM CST
jobs:
my_job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_PAT }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Set up Git user
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Set up cache for pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run script
run: python update_ics.py
env:
WA_API_KEY: ${{ secrets.WA_API_KEY }}
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
WA_BOT_ACCT_PW: ${{ secrets.WA_BOT_ACCT_PW }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: outputs
path: |
*.ics
*.log
*.csv