Skip to content

Nightly update from google sheet #678

Nightly update from google sheet

Nightly update from google sheet #678

Workflow file for this run

name: Nightly update from google sheet
# TODO: run nightly
on:
workflow_dispatch:
push:
branches:
- master
schedule:
# run every night at 2:42 am PST
- cron: '42 10 * * *'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: |
# activate virtual environment
python -m venv venv
. venv/bin/activate
python -m pip install -r requirements.txt
python3 site-generator/generate.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update site
commit_options: '--no-verify'
commit_user_name: GitHub Actions
commit_user_email: github-actions[bot]@users.noreply.github.com
commit_author: GitHub Actions <github-actions[bot]@users.noreply.github.com>
file_pattern: index.html site-generator/generated/* sitemap.xml
- uses: gacts/purge-jsdelivr-cache@v1
if: steps.auto-commit-action.outputs.changes_detected == 'true'
with:
url: |
https://cdn.jsdelivr.net/gh/kleutzinger/kleutzinger.github.io/site-generator/generated/projects.json
https://cdn.jsdelivr.net/gh/kleutzinger/kleutzinger.github.io/site-generator/kevbadge.js
- uses: gautamkrishnar/keepalive-workflow@v2 # runs every 50 days to keep the workflow alive