mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
* Potential fix for code scanning alert no. 39: Workflow does not contain permissions * update permissions ---------
30 lines
574 B
YAML
30 lines
574 B
YAML
name: Database Schema Visualization CI
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'docs/development/database-schema.dbml'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Install bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: ${{ secrets.BUN_VERSION }}
|
|
|
|
- name: Install deps
|
|
run: bun i
|
|
|
|
- name: sync database schema to dbdocs
|
|
env:
|
|
DBDOCS_TOKEN: ${{ secrets.DBDOCS_TOKEN }}
|
|
run: npm run db:visualize
|