Skip to content

.github/workflows/cron.yml #1284

.github/workflows/cron.yml

.github/workflows/cron.yml #1284

Workflow file for this run

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
SERVICE_ACCOUNT_JSON: ${{ secrets.SERVICE_ACCOUNT_JSON}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
- name: Generate
run: |
printenv SERVICE_ACCOUNT_JSON > "$GOOGLE_APPLICATION_CREDENTIALS"
python -m pip install -r requirements.txt
python main.py
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Updates for `date`"
git push