Skip to content

🛠️ fix: CI

🛠️ fix: CI #1

Workflow file for this run

name: Jinja2 HTML Render Workflow
on:
push:
branches:
- main
workflow_dispatch:
jobs:
render:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.12"
- name: Set Up Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Prettier
run: npm i -g prettier
- name: Install dependencies
run: pdm install
- name: Render HTML
run: pdm run ./generate.py
- name: Format with Prettier
run: prettier -c -w .
- name: Commit changes
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git add .
git commit -m "✨ render" || exit 0
git push