Skip to content

Wild Apricot Contact Archival Workflow #131

Wild Apricot Contact Archival Workflow

Wild Apricot Contact Archival Workflow #131

name: Wild Apricot Contact Archival Workflow
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *' #Runs every day at 2:00 AM CST
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 "[email protected]"
- 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 archival_script.py
env:
WA_API_KEY: ${{ secrets.WA_API_KEY }}