mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-02 09:33:33 +00:00
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:
parent
2b72be1c29
commit
893c23d1a6
10
.github/actions/flatpak-builder-lint/action.yaml
vendored
10
.github/actions/flatpak-builder-lint/action.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue