NOW IT SHOULD WORK MY FUCKING GOD I HATE YOU GITHUB
This commit is contained in:
parent
a0f317cc91
commit
c11c40084a
3 changed files with 7 additions and 24 deletions
2
.github/scripts/convert/index.mjs
vendored
2
.github/scripts/convert/index.mjs
vendored
|
|
@ -38,4 +38,4 @@ await writeFile(
|
|||
parser: "json",
|
||||
}
|
||||
)
|
||||
);
|
||||
);
|
||||
2
.github/scripts/generate/index.mjs
vendored
2
.github/scripts/generate/index.mjs
vendored
|
|
@ -52,4 +52,4 @@ await writeFile(
|
|||
uglify ? UglifyCSS.processString(dist.join("\n")) : dist.join("\n\n")
|
||||
);
|
||||
|
||||
console.timeEnd("Done");
|
||||
console.timeEnd("Done");
|
||||
27
.github/workflows/generate-db.yml
vendored
27
.github/workflows/generate-db.yml
vendored
|
|
@ -2,17 +2,6 @@ name: Generate Database
|
|||
|
||||
on:
|
||||
push:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Expand All
|
||||
|
||||
@@ -7,25 +7,16 @@ on:
|
||||
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
|
|
@ -41,31 +30,25 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Expand All
|
||||
|
||||
@@ -40,15 +31,61 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.x
|
||||
|
||||
- name: Setup PNPM
|
||||
working-directory: .github/scripts
|
||||
run: |
|
||||
npm i -g pnpm
|
||||
pnpm i
|
||||
|
||||
- name: Run generate script
|
||||
working-directory: .github/scripts
|
||||
run: pnpm run generate
|
||||
|
||||
- name: Push changes
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
git add db/dist.css
|
||||
git commit -m "chore(db): update dist.css (${{ github.sha || 'manual trigger' }})" || true
|
||||
git push
|
||||
git push
|
||||
Loading…
Add table
Add a link
Reference in a new issue