mirror of
https://github.com/refact0r/midnight-discord.git
synced 2026-08-25 17:41:13 +02:00
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.
31 lines
738 B
YAML
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
|