diff options
author | tytan652 <tytan652@tytanium.xyz> | 2024-02-23 10:35:40 +0100 |
---|---|---|
committer | Georges Basile Stavracas Neto <GeorgesStavracas@users.noreply.github.com> | 2024-02-23 09:40:06 -0300 |
commit | 63eef36786a0efb0c3532ebd1f63996b8d3dab3f (patch) | |
tree | 6e84b60d58fc292bd2d5f28072d487d37a23cda0 | |
parent | ba4f17e1143dd769f55bce6b1595c6704aa7a44d (diff) |
CI: Add appstream type support to flatpak-builder-lint action
-rw-r--r-- | .github/actions/flatpak-builder-lint/action.yaml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/actions/flatpak-builder-lint/action.yaml b/.github/actions/flatpak-builder-lint/action.yaml index f53863599..2defa0124 100644 --- a/.github/actions/flatpak-builder-lint/action.yaml +++ b/.github/actions/flatpak-builder-lint/action.yaml @@ -2,7 +2,7 @@ name: Run flatpak-builder-lint description: Runs flatpak-builder-lint with exceptions inputs: artifact: - description: Type of artifact to lint (builddir, repo, manifest) + description: Type of artifact to lint (builddir, repo, manifest, appstream) required: true path: description: Path to flatpak-builder manifest or Flatpak build directory @@ -23,6 +23,7 @@ runs: builddir);; repo);; manifest);; + appstream);; *) echo "::error::Given artifact type is incorrect" exit 2 @@ -42,6 +43,14 @@ runs: exit 2 fi + if [[ ${{ inputs.artifact }} == "appstream" ]]; then + echo $ret + + [[ $exit_code != 0 ]] && echo "::error::Flatpak appstream info is not valid" + + exit $exit_code + fi + for ((i = 0 ; i < $(echo $ret | jq '.warnings | length') ; i++)); do warning=$(echo $ret | jq ".warnings[$i]") echo "::warning::$warning found in the Flatpak ${{ inputs.artifact }}" |