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