Skip to content

Commit

Permalink
Still update dependencies when on the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsRay committed Dec 21, 2023
1 parent 9cda0cd commit 3a24ee5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ update: VENV
export UPDATE_GIT_TAG="$$(git describe --tags $$(git rev-list --tags --max-count=1))"
if [[ "$$CURRENT_GIT_TAG" == "$$UPDATE_GIT_TAG" ]]; then
echo "Already on the latest release $$CURRENT_GIT_TAG!"
exit 0
else
echo "Checkout out to latest release $$UPDATE_GIT_TAG"
git checkout "$$UPDATE_GIT_TAG"
fi
echo "Checkout out to latest release $$UPDATE_GIT_TAG"
git checkout "$$UPDATE_GIT_TAG"
echo "Updating dependencies..."
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements.txt >/dev/null
echo "Updated to version $$UPDATE_GIT_TAG"
if test -f ".env"; then
if test -r ".env"; then
Expand Down

0 comments on commit 3a24ee5

Please sign in to comment.