.github/workflows/actions.yml #167
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: Pitchfork Deployment | |
on: | |
schedule: | |
- cron: '0 11 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git Repo | |
uses: actions/checkout@v2 # checkout the repository content | |
- name: Setup Python env | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' # install the python version needed | |
- name: Install Python Packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Execute Pitchfork | |
env: | |
GMAIL_USER: ${{ secrets.GMAIL_USER }} | |
GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} | |
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | |
run: python src/pitchfork.py |