-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.13 KB
/
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
37
38
39
40
41
name: Python Script Workflow
on:
# Triggers the workflow at every 15th minute past every hour from 14 through 16 on every day-of-week from Monday through Friday.
schedule:
- cron: "*/15 14-16 * * 1-5"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Checkout repository content
uses: actions/checkout@v3 # Checkout the repository content to github runner.
- name: Setup Python Version
uses: actions/setup-python@v3
with:
python-version: 3.10.2
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v3
with:
path: "requirements.txt"
- name: Execute Python script # Run the app.py
env:
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