mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
Add check on number of processed assets in updater.sh
This commit is contained in:
parent
e6c351dc8f
commit
e92047154e
1 changed files with 9 additions and 0 deletions
9
.github/workflows/updater.sh
vendored
9
.github/workflows/updater.sh
vendored
|
@ -53,6 +53,8 @@ echo "${#assets[@]} available asset(s)"
|
||||||
|
|
||||||
# Here we use the $assets variable to get the resources published in the upstream release.
|
# Here we use the $assets variable to get the resources published in the upstream release.
|
||||||
|
|
||||||
|
count=0
|
||||||
|
|
||||||
# Let's loop over the array of assets URLs
|
# Let's loop over the array of assets URLs
|
||||||
for asset_url in ${assets[@]}; do
|
for asset_url in ${assets[@]}; do
|
||||||
|
|
||||||
|
@ -102,12 +104,19 @@ SOURCE_FILENAME=
|
||||||
EOT
|
EOT
|
||||||
echo "... conf/$src.src updated"
|
echo "... conf/$src.src updated"
|
||||||
|
|
||||||
|
count=$((count+1))
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "... asset ignored"
|
echo "... asset ignored"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ $count == 0 ]; then
|
||||||
|
echo "::warning ::None of the assets were processed."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPDATE STEPS
|
# SPECIFIC UPDATE STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue