feat: use temp file for oci auth #781
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check DB schema structs | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v*' | |
permissions: | |
contents: read | |
jobs: | |
check-mysql-schema-structs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.24.4" | |
- 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/checkout@v5 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.24.4" | |
- 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 |