Compare commits

...

3 Commits

View File

@@ -568,8 +568,11 @@
dev_exists="$?" dev_exists="$?"
if [[ "$dev_exists" == 0 ]]; then if [[ "$dev_exists" == 0 ]]; then
git switch dev git switch dev
else elif [[ "$dev_exists" == 2 ]]; then
git switch main git switch main
else
echo "ERROR: Unknown status for dev_exists, '$dev_exists'."
continue
fi fi
git pull git pull
git push git push
@@ -893,10 +896,13 @@
function load-branch { function load-branch {
rcvr="$1" # branch which we want to modify rcvr="$1" # branch which we want to modify
base="$2" # branch with the changes we want base="$2" # branch with the changes we want
if [[ "$1" == main ]]; then if [[ "$rcvr" == main ]]; then
echo "Are you nuts, fool!? Not main! Do it manually!" echo "Are you nuts, fool!? Not main! Do it manually!"
exit 1 exit 1
fi fi
if [[ -z "$base" ]]; then
base="dev"
fi
git switch "$base" git switch "$base"
git branch -f "$rcvr" "$base" git branch -f "$rcvr" "$base"
#git switch "$rcvr" #git switch "$rcvr"
@@ -904,8 +910,11 @@
#git switch "$base" #git switch "$base"
git branch git branch
} }
alias load-prod="load-branch prod dev" alias load-prod="load-branch prod"
alias load-stage="load-branch stage dev" alias load-stage="load-branch stage"
alias rollback-prod="load-branch prod main"
alias rollback-stage="load-branch stage main"
alias rollback-dev="load-branch dev main"
- name: General | Account Management | Users | Files | Common Variable - name: General | Account Management | Users | Files | Common Variable
set_fact: set_fact: