mirror of
https://github.com/KrstlSkll69/vc-snippets.git
synced 2025-06-07 10:23:41 +02:00
Create classUpdate.yml
This commit is contained in:
parent
82f0755174
commit
4b60ac1e90
1 changed files with 26 additions and 0 deletions
26
.github/workflows/classUpdate.yml
vendored
Normal file
26
.github/workflows/classUpdate.yml
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue