Create classUpdate.yml

This commit is contained in:
Indiana Jone (Indi) 2025-05-22 11:50:32 -04:00 committed by GitHub
parent 82f0755174
commit 4b60ac1e90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

26
.github/workflows/classUpdate.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Update Classes
on:
schedule:
- cron: "0 */12 * * *" # every 12 hours
workflow_dispatch:
repository_dispatch: #webhook trigger
types: [update_class]
jobs:
classUpdate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: update
uses: metro420yt/class-update@v1-rc
with:
ext: css
diff: "https://raw.githubusercontent.com/SyndiShanX/Update-Classes/main/Changes.txt"
- uses: EndBug/add-and-commit@v9
if: ${{steps.update.outputs.totalChanges > 0}}
with:
default_author: github_actions
message: "chore: update classes >_<"
fetch: true