Skip to content

Commit

Permalink
Updated schema verification Github action to auto-commit any changes …
Browse files Browse the repository at this point in the history
…to the schema
  • Loading branch information
richarddubay committed Aug 1, 2024
1 parent 522f3c0 commit ed47bb8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/verify-schema-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@ jobs:
run: npx prisma db pull
- name: Prisma Generate
run: npx prisma generate
- name: Check for modified snapshots / database schema
id: snapshot-check
run: echo ::set-output name=modified::$(if git status | grep "nothing to commit"; then echo "false"; else echo "true"; fi)
- name: Commit any updated snapshots / database schema changes
if: steps.snapshot-check.outputs.modified == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Commit for snapshot update
- name: Spin Down Docker 🐳
run: docker compose down

0 comments on commit ed47bb8

Please sign in to comment.