diff --git a/.github/scripts/convert/index.mjs b/.github/scripts/convert/index.mjs index f4057ba8..a7981d33 100644 --- a/.github/scripts/convert/index.mjs +++ b/.github/scripts/convert/index.mjs @@ -38,4 +38,4 @@ await writeFile( parser: "json", } ) -); +); \ No newline at end of file diff --git a/.github/scripts/generate/index.mjs b/.github/scripts/generate/index.mjs index b331a8fe..f55efd1f 100644 --- a/.github/scripts/generate/index.mjs +++ b/.github/scripts/generate/index.mjs @@ -52,4 +52,4 @@ await writeFile( uglify ? UglifyCSS.processString(dist.join("\n")) : dist.join("\n\n") ); -console.timeEnd("Done"); +console.timeEnd("Done"); \ No newline at end of file diff --git a/.github/workflows/generate-db.yml b/.github/workflows/generate-db.yml index 0262e897..f1db9915 100644 --- a/.github/workflows/generate-db.yml +++ b/.github/workflows/generate-db.yml @@ -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 \ No newline at end of file