Working on airport drawer
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
force=0
|
||||
push=0
|
||||
push_all=0
|
||||
|
||||
API_VERSION=$(sed -n 's/^version *= *"\([^"]*\)".*/\1/p' "$(pwd)"/api/Cargo.toml)
|
||||
UI_VERSION=$(sed -n 's/.*"version": *"\([^"]*\)".*/\1/p' "$(pwd)"/ui/package.json)
|
||||
@@ -17,6 +18,13 @@ for arg in "$@"; do
|
||||
push=1
|
||||
shift
|
||||
;;
|
||||
-a|--push-all)
|
||||
push_all=1
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
@@ -69,3 +77,14 @@ if echo "$changed_files" | grep -q "^api/"; then
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Push all tags
|
||||
if [ $push_all -eq 1 ]; then
|
||||
if [ $force -eq 1 ]; then
|
||||
echo "Force-pushing ALL tags to remote"
|
||||
git push -f origin --tags
|
||||
else
|
||||
echo "Pushing ALL tags to remote"
|
||||
git push origin --tags
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user