Skip to content

Commit

Permalink
[github] Validate desktop file
Browse files Browse the repository at this point in the history
Signed-off-by: Ferenc Géczi <[email protected]>
  • Loading branch information
Ferenc- committed May 23, 2024
1 parent 64c8703 commit 1e0da9b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/desktop-file-check.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 1e0da9b

Please sign in to comment.