userPFP/.github/workflows/generate-db.yml
Workflow config file is invalid. Please check your config file: yaml: line 14: mapping values are not allowed in this context
2023-09-24 21:23:36 +02:00

71 lines
1.4 KiB
YAML

name: Generate Database
on:
push:
Expand All
@@ -7,25 +7,16 @@ on:
branches:
- main
paths:
- ".github/workflows/generate-db.yml"
- ".github/scripts/generate/**/*.*"
- "db/datadesktop.json"
- "db/template.css"
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
retry-max: [3] # Set the maximum number of retries here
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