From 1c4b57db58cf3927695dc812a9a6bfd1a5f30394 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Fri, 21 Apr 2023 13:18:40 +0200 Subject: [PATCH] fix autoupdater : venv folder --- .github/workflows/updater.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index f674ba6..9cf5bef 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -35,10 +35,12 @@ echo "PROCEED=false" >> $GITHUB_ENV # Proceed only if the retrieved version is greater than the current one if ! dpkg --compare-versions "$current_version" "lt" "$version" ; then echo "::warning ::No new version available" + rm -rf ./venv exit 0 # Proceed only if a PR for this new version does not already exist elif git ls-remote -q --exit-code --heads https://github.com/$GITHUB_REPOSITORY.git ci-auto-update-v$version ; then echo "::warning ::A branch already exists for this update" + rm -rf ./venv exit 0 fi @@ -123,7 +125,8 @@ done sed -i "s/^version\s*=.*/version = \"$version~ynh1\"/" manifest.toml # No need to update the README, yunohost-bot takes care of it - +#remove the venv folder +rm -rf ./venv # The Action will proceed only if the PROCEED environment variable is set to true echo "PROCEED=true" >> $GITHUB_ENV exit 0