CI: Use flatpak-builder-lint from the image

The images provided by Flathub already contain flatpak-builder-lint,
and it's up-to-date.
This commit is contained in:
Georges Basile Stavracas Neto 2024-02-13 09:15:07 -03:00 committed by Ryan Foster
parent 31b10f3634
commit 2b72be1c29

View file

@ -33,23 +33,6 @@ runs:
;;
esac
- uses: actions/checkout@v4
with:
repository: flathub/flatpak-builder-lint
ref: v2.0.13
path: flatpak-builder-lint
set-safe-directory: ${{ inputs.workingDirectory }}
- name: Install Dependencies 🛍️
shell: bash
working-directory: ${{ inputs.workingDirectory }}
run: |
: Install Dependencies 🛍️
echo ::group::Install Dependencies
dnf install -y -q poetry jq
poetry -q -C flatpak-builder-lint install
echo ::endgroup::
- name: Run flatpak-builder-lint
id: result
shell: bash
@ -57,7 +40,7 @@ runs:
run: |
: Run flatpak-builder-lint
exit_code=0
ret=$(poetry -C flatpak-builder-lint run flatpak-builder-lint --exceptions ${{ inputs.artifact }} ${{ inputs.path }}) || exit_code=$?
ret=$(flatpak-builder-lint --exceptions ${{ inputs.artifact }} ${{ inputs.path }}) || exit_code=$?
if [[ $exit_code != 0 && -z "$ret" ]]; then
echo "::error::Error while running flatpak-builder-lint"
exit 2