Python Script Workflow #933
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |