Skip to content

Weekly Workflow

Weekly Workflow #49

Workflow file for this run

name: Weekly Workflow
on:
schedule:
- cron: '0 9 * * SUN'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 300
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-0
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Run update script if cache miss
run: |
poetry install
poetry run python3 update.py
timeout-minutes: 300