Skip to content

Themes src

Themes src #16

Workflow file for this run

name: Build Theme
on:
push:
branches: ["themes-src"]
pull_request:
branches: ["themes-src"]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
- run: node build.js
- name: Push themes.json to main branch
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
mv themes.json /tmp/themes.json
git fetch origin main
git checkout main
git pull origin main
mv /tmp/themes.json themes.json
git add themes.json
git commit -m "Auto-update themes.json" || echo "No changes to commit"
git push origin main