Working on airport drawer

This commit is contained in:
2025-05-28 21:21:25 -04:00
parent 25608db372
commit 7dedc7a8dc
5 changed files with 79 additions and 10 deletions

View File

@@ -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