diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 8a57149..0ef3295 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -10,15 +10,15 @@ # automatic actions when a new upstream release is detected. # Remove this exit command when you are ready to run this Action -#exit 1 +# exit 1 #================================================= # FETCHING LATEST RELEASE AND ITS ASSETS #================================================= # Fetching information -current_version=$(cat manifest.toml | jq -j '.version|split("~")[0]') -repo=$(cat manifest.toml | jq -j '.upstream.code|split("https://github.com/")[1]') +current_version=$(cat manifest.toml | tomlq -j '.version|split("~")[0]') +repo=$(cat manifest.toml | tomlq -j '.upstream.code|split("https://github.com/")[1]') # Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions) latest_release_json=$(curl --silent "https://codeberg.org/api/v1/repos/calckey/calckey/releases" | jq -r '[.[] | select( .prerelease != true )][0]') version=$(echo $latest_release_json | jq -r '.tag_name') @@ -129,7 +129,7 @@ done #================================================= # Replace new version in manifest -echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.toml)" > manifest.toml +echo "$(tomlq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.toml)" > manifest.toml # No need to update the README, yunohost-bot takes care of it