diff --git a/scripts/rebuild-test-bp3.sh b/scripts/rebuild-test-bp3.sh index 8fbcdf0..909e6c1 100644 --- a/scripts/rebuild-test-bp3.sh +++ b/scripts/rebuild-test-bp3.sh @@ -22,6 +22,15 @@ git clone https://github.com/untillpro/airs-bp3 # go to airs-bp3 repo folder cd airs-bp3 +if [[ "$schemas" == "rebuild" ]]; then + go build -o airs-bp airsbp3/cli/*.go + ./airs-bp baseline_schemas airsbp3/baseline_schemas + git add . + git commit -m "baseline schemas update" + git push + exit 0 +fi + go env -w GOSUMDB=off echo "gh_event: $gh_event" if [[ "$gh_event" == "push" ]]; then @@ -51,3 +60,4 @@ else echo "Push new version of $reponame to git" fi fi +