From e758bc62c25b0e4ff17fa4647fc2b71d1e898004 Mon Sep 17 00:00:00 2001 From: Orion Kindel Date: Thu, 20 Jul 2023 13:37:03 -0500 Subject: [PATCH] fix: gen-migrations --- .gitea/workflows/gen-migrations.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/gen-migrations.yml b/.gitea/workflows/gen-migrations.yml index a667902..b935cdd 100644 --- a/.gitea/workflows/gen-migrations.yml +++ b/.gitea/workflows/gen-migrations.yml @@ -20,18 +20,21 @@ jobs: - name: 'update migrations submodule (and push if needed)' run: | set -ex + git fetch --all --recurse-submodules git submodule update --init --remote migrations; git add -A git commit -m 'chore: update migrations' || true git push || true - name: 'gen migrations (and push if needed)' run: | + set -ex ./scripts/gen_migrations.sh if ! (git diff-index --quiet HEAD --ignore-submodules=none); then cd migrations + git switch migrations git add -A git commit -m 'chore: babe wake up new migrations just dropped' - git push + git push -u origin migrations cd ../ git add -A git commit -m 'chore: update migrations'