From 4b60ac1e9099193ef7f17681390cc38d0edb2ae8 Mon Sep 17 00:00:00 2001 From: "Indiana Jone (Indi)" <150982280+KrstlSkll69@users.noreply.github.com> Date: Thu, 22 May 2025 11:50:32 -0400 Subject: [PATCH] Create classUpdate.yml --- .github/workflows/classUpdate.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/classUpdate.yml diff --git a/.github/workflows/classUpdate.yml b/.github/workflows/classUpdate.yml new file mode 100644 index 0000000..e11b9c2 --- /dev/null +++ b/.github/workflows/classUpdate.yml @@ -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