NOW IT SHOULD WORK MY FUCKING GOD I HATE YOU GITHUB

This commit is contained in:
coolesding 2023-09-24 20:31:12 +01:00 committed by GitHub
parent a0f317cc91
commit c11c40084a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 24 deletions

View file

@ -2,17 +2,6 @@ name: Generate Database
on: on:
push: push:
Expand All
@@ -7,25 +7,16 @@ on:
branches: branches:
- main - main
paths: paths:
@ -41,31 +30,25 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
Expand All
@@ -40,15 +31,61 @@ jobs:
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 18.x node-version: 18.x
- name: Setup PNPM - name: Setup PNPM
working-directory: .github/scripts working-directory: .github/scripts
run: | run: |
npm i -g pnpm npm i -g pnpm
pnpm i pnpm i
- name: Run generate script - name: Run generate script
working-directory: .github/scripts working-directory: .github/scripts
run: pnpm run generate run: pnpm run generate
- name: Push changes - name: Push changes
run: | run: |
git config --global user.name "github-actions[bot]" git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add db/dist.css git add db/dist.css
git commit -m "chore(db): update dist.css (${{ github.sha || 'manual trigger' }})" || true git commit -m "chore(db): update dist.css (${{ github.sha || 'manual trigger' }})" || true
git push git push