mirror of
https://github.com/YunoHost-Apps/zwave-js-ui_ynh.git
synced 2024-09-03 18:06:00 +02:00
fix autoupdater : venv folder
This commit is contained in:
parent
6c3087dabc
commit
1c4b57db58
1 changed files with 4 additions and 1 deletions
5
.github/workflows/updater.sh
vendored
5
.github/workflows/updater.sh
vendored
|
@ -35,10 +35,12 @@ echo "PROCEED=false" >> $GITHUB_ENV
|
||||||
# Proceed only if the retrieved version is greater than the current one
|
# Proceed only if the retrieved version is greater than the current one
|
||||||
if ! dpkg --compare-versions "$current_version" "lt" "$version" ; then
|
if ! dpkg --compare-versions "$current_version" "lt" "$version" ; then
|
||||||
echo "::warning ::No new version available"
|
echo "::warning ::No new version available"
|
||||||
|
rm -rf ./venv
|
||||||
exit 0
|
exit 0
|
||||||
# Proceed only if a PR for this new version does not already exist
|
# 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
|
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"
|
echo "::warning ::A branch already exists for this update"
|
||||||
|
rm -rf ./venv
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -123,7 +125,8 @@ done
|
||||||
sed -i "s/^version\s*=.*/version = \"$version~ynh1\"/" manifest.toml
|
sed -i "s/^version\s*=.*/version = \"$version~ynh1\"/" manifest.toml
|
||||||
|
|
||||||
# No need to update the README, yunohost-bot takes care of it
|
# 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
|
# The Action will proceed only if the PROCEED environment variable is set to true
|
||||||
echo "PROCEED=true" >> $GITHUB_ENV
|
echo "PROCEED=true" >> $GITHUB_ENV
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue