From 1e0da9bb0fa2700a4577b6257fb3bdc589f36afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20G=C3=A9czi?= Date: Thu, 23 May 2024 00:00:06 +0000 Subject: [PATCH] [github] Validate desktop file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferenc Géczi --- .github/workflows/desktop-file-check.yaml | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/desktop-file-check.yaml diff --git a/.github/workflows/desktop-file-check.yaml b/.github/workflows/desktop-file-check.yaml new file mode 100644 index 0000000000000..fd63efa13eb28 --- /dev/null +++ b/.github/workflows/desktop-file-check.yaml @@ -0,0 +1,30 @@ +name: Validate .desktop file +on: + workflow_dispatch: # Manual trigger + pull_request: + paths: + - qt/res/OrganicMaps.desktop + - .github/workflows/desktop-file-check.yaml # Run check on self change + +jobs: + validate-desktop-file: + name: Validate .desktop file + runs-on: ubuntu-24.04 + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + fetch-depth: 1 + sparse-checkout:| + qt/res/OrganicMaps.desktop + + - name: Install desktop-file-validate tool + shell: bash + run: | + sudo apt update -y + sudo apt install -y \ + desktop-file-utils + + - name: Validate desktop file + shell: bash + run: desktop-file-validate qt/res/OrganicMaps.desktop && echo "Successfully validated .desktop file"