Skip to content

Add additional temp feature flag to hide HF access token field from c… #2587

Add additional temp feature flag to hide HF access token field from c…

Add additional temp feature flag to hide HF access token field from c… #2587

name: Check DB schema structs
on:
pull_request:
push:
branches:
- 'main'
tags:
- 'v*'
permissions: # set contents: read at top-level, per OpenSSF ScoreCard rule TokenPermissionsID
contents: read
jobs:
check-mysql-schema-structs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.25.3"
- name: Generate MySQL DB schema structs
run: make gen/gorm/mysql
- name: Check if there are uncommitted file changes
run: |
clean=$(git status --porcelain)
if [[ -z "$clean" ]]; then
echo "MySQL schema is up to date."
else
echo "Uncommitted file changes detected after generating MySQL schema: $clean"
git diff
exit 1
fi
check-postgres-schema-structs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.25.3"
- name: Generate PostgreSQL DB schema structs
run: make gen/gorm/postgres
- name: Check if there are uncommitted file changes
run: |
clean=$(git status --porcelain)
if [[ -z "$clean" ]]; then
echo "PostgreSQL schema is up to date."
else
echo "Uncommitted file changes detected after generating PostgreSQL schema: $clean"
git diff
exit 1
fi