Skip to content

Commit

Permalink
using classUpdate CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Metro420yt committed Oct 28, 2024
1 parent 8976546 commit b08dd32
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 198 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/classUpdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update Classes

on:
workflow_dispatch:
repository_dispatch:
repository_dispatch: #webhook trigger
types: [update_class]

jobs:
Expand All @@ -11,10 +11,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: Metro420yt/ClassUpdate
ref: 4d21e388fac6f1c32c85caeefe1bad8cf1b742c4
path: classUpdate
- name: Update
run: npm run class
run: python ./classUpdate/replace.py ./stuff -x=scss -y
- uses: EndBug/add-and-commit@v9
with:
add: ./stuff
default_author: github_actions
message: 'chore: update classes'
fetch: true
11 changes: 0 additions & 11 deletions ClassUpdate/config.ini

This file was deleted.

13 changes: 0 additions & 13 deletions ClassUpdate/lib/file.py

This file was deleted.

13 changes: 0 additions & 13 deletions ClassUpdate/lib/format.py

This file was deleted.

67 changes: 0 additions & 67 deletions ClassUpdate/lib/input.py

This file was deleted.

35 changes: 0 additions & 35 deletions ClassUpdate/lib/pairs.py

This file was deleted.

16 changes: 0 additions & 16 deletions ClassUpdate/lib/replacer.py

This file was deleted.

39 changes: 0 additions & 39 deletions ClassUpdate/replace.py

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"pnpm": ">=8.0.0"
},
"scripts": {
"class": "cd ./ClassUpdate && python ./replace.py LOCAL -y",
"class": "python ./ClassUpdate/replace.py -x=scss -y",
"dev": "nodemon -w \"./stuff\" -e scss -x \"sass ./app.scss \"%appdata%/Vencord/themes/_tmp/main.css\" --no-source-map\"",
"build": "sass ./app.scss ./betterdiscord/main.css --no-source-map --style=compressed",
"build": "sass ./app.scss ./betterdiscord/main.css --no-source-map --style expanded",
"lint": "prettier **/*.scss --check",
"lint:fix": "prettier **/*.scss --write"
},
Expand Down

0 comments on commit b08dd32

Please sign in to comment.