-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 995 Bytes
/
actions.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
name: scheduled run main.py
on:
schedule:
- cron: '0 0 * * 2,4' # At 8AM for GMT+8, 12AM for UTC, every Tue and Thu
env:
EMAIL: ${{ secrets.EMAIL }}
APP_PASS: ${{ secrets.APP_PASS }}
AMAZON_S3_BUCKET_NAME: ${{ secrets.AMAZON_S3_BUCKET_NAME }}
AMAZON_S3_BUCKET_SUBFOLDER: ${{ secrets.AMAZON_S3_BUCKET_SUBFOLDER }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REGION: ${{ secrets.REGION }}
EMAIL_RECIPIENTS: ${{ secrets.EMAIL_RECIPIENTS }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip freeze
- name: execute py script
run: python main.py