Skip to content

Commit

Permalink
ci: 🦺 (db-push-migration) migration ファイルを commit するように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
dino3616 committed Oct 28, 2023
1 parent 76aef75 commit 163f25a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/db-push-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,19 @@ jobs:
- name: push migration file to remote db
run: pnpm supabase db push

- name: commit migration file
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
if git diff --name-only | grep -q "supabase/migrations/.*.sql"; then \
git add ./; \
git commit -m "actions: 🤖 (supabase) updated migration file"; \
git push origin HEAD:${GITHUB_REF} --force; \
echo "Committed changes to migration history"; \
else \
echo "No changes detected in migration history"; \
fi
db-push-migration-check:
runs-on: ubuntu-latest
needs: push
Expand Down

0 comments on commit 163f25a

Please sign in to comment.