-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 939 Bytes
/
main.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
name: Python Script Workflow
on:
# Triggers the workflow at 14:00 GMT on every day-of-week from Monday through Friday.
schedule:
- cron: '0 14 * * 1-5'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment:
name: production
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10.5'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Execute Python script # Run the app.py
env:
IMAP: ${{ secrets.IMAP }}
MAIL: ${{ secrets.MAIL }}
PASS: ${{ secrets.PASS }}
API_KEY: ${{ secrets.API_KEY }}
API_KEY_SECRET: ${{ secrets.API_KEY_SECRET }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }}
run: python app.py