Skip to content

API Cache Update

API Cache Update #13

name: Manual API Cache Update
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
python-version: "3.12"
- name: Setup Project
run: |
echo "Venv setup"
python -m venv .venv
.venv\Scripts\activate
echo "Installing dependencies"
pip install -e ./
- name: Run Blender Launcher Caching
run: |
.venv\Scripts\activate
echo "Building style"
python build_style.py
echo "Set Settings"
python scripts/set_default_settings.py
echo "Building Cache"
python source/main.py --build-cache &
sleep 240
echo "Updating Cache API files"
python scripts/update_cache_api.py
- name: Commit Changes
run: |
git checkout -b api-bot/update-cache
git config user.name "Blender Launcher[bot]"
git config user.email "Blender-Launcher[bot]@users.noreply.github.com"
git add .
git commit -m "Update cache files"
- name: Push Changes
run: |
git push origin api-bot/update-cache
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: api-bot/update-cache
base: main
title: "[Bot] Automated cache update"
body: |
Automated API cache update