refact0r-midnight-discord/.github/workflows/classUpdate.yml
refact0r 151176d321 ci: use refact0r/class-update@v3
the old action ran on node20 (deprecated by github actions) and its
default changelist, SyndiShanX/Update-Classes on github, was deleted,
so every run failed with a 404. the fork runs on node24 and reads the
changelist from its codeberg home.
2026-08-09 18:33:10 -07:00

31 lines
738 B
YAML

name: Update Classes
on:
schedule:
- cron: "0 */24 * * *"
workflow_dispatch:
repository_dispatch:
types: [update_class]
jobs:
classUpdate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- id: update-src
uses: refact0r/class-update@v3
with:
folder: src
ext: css
- id: update-build
uses: refact0r/class-update@v3
with:
folder: build
ext: css
- uses: EndBug/add-and-commit@v10
if: ${{steps.update-src.outputs.totalChanges > 0 || steps.update-build.outputs.totalChanges > 0}}
with:
default_author: github_actions
message: "chore: update classes >_<"
fetch: true