Email Events Workflow #63
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: Email Events Workflow | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 22 * * FRI' | |
jobs: | |
my_job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Set up Git user | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "github-actions@github.com" | |
- name: Set up cache for pip | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run script | |
run: python email_events.py | |
env: | |
WA_API_KEY: ${{ secrets.WA_API_KEY }} | |