CI: Remove special-cased flatpak-builder-lint error

We have screenshots in regular builds now, there's no need to special
case the screenshots error anymore.
This commit is contained in:
Georges Basile Stavracas Neto 2024-02-13 10:23:07 -03:00 committed by Ryan Foster
parent 2b72be1c29
commit 893c23d1a6

View file

@ -52,15 +52,9 @@ runs:
done
n_errors=$(echo $ret | jq '.errors | length')
for ((i = 0 ; i < $(echo $ret | jq '.errors | length') ; i++)); do
for ((i = 0 ; i < $n_errors ; i++)); do
error=$(echo $ret | jq ".errors[$i]")
if [[ "${{ inputs.validateToPublish }}" == "false" && "${error//\"}" == "appstream-screenshots-not-mirrored" ]]; then
echo "::notice::$error found and ignored in the Flatpak ${{ inputs.artifact }}"
n_errors=$(($n_errors-1))
else
echo "::error::$error found in the Flatpak ${{ inputs.artifact }}"
fi
echo "::error::$error found in the Flatpak ${{ inputs.artifact }}"
done
[[ $n_errors == 0 ]] || exit 2