fix: gen-migrations
All checks were successful
gen-migrations / gen-migrations (push) Successful in 8s
All checks were successful
gen-migrations / gen-migrations (push) Successful in 8s
This commit is contained in:
parent
1dae8d254e
commit
e758bc62c2
@ -20,18 +20,21 @@ jobs:
|
|||||||
- name: 'update migrations submodule (and push if needed)'
|
- name: 'update migrations submodule (and push if needed)'
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
|
git fetch --all --recurse-submodules
|
||||||
git submodule update --init --remote migrations;
|
git submodule update --init --remote migrations;
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m 'chore: update migrations' || true
|
git commit -m 'chore: update migrations' || true
|
||||||
git push || true
|
git push || true
|
||||||
- name: 'gen migrations (and push if needed)'
|
- name: 'gen migrations (and push if needed)'
|
||||||
run: |
|
run: |
|
||||||
|
set -ex
|
||||||
./scripts/gen_migrations.sh
|
./scripts/gen_migrations.sh
|
||||||
if ! (git diff-index --quiet HEAD --ignore-submodules=none); then
|
if ! (git diff-index --quiet HEAD --ignore-submodules=none); then
|
||||||
cd migrations
|
cd migrations
|
||||||
|
git switch migrations
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m 'chore: babe wake up new migrations just dropped'
|
git commit -m 'chore: babe wake up new migrations just dropped'
|
||||||
git push
|
git push -u origin migrations
|
||||||
cd ../
|
cd ../
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m 'chore: update migrations'
|
git commit -m 'chore: update migrations'
|
||||||
|
Loading…
Reference in New Issue
Block a user