diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 28ec7e2..78ad523 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,6 +15,12 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Check version consistency + run: bash scripts/version-check.sh + + - name: Check tag name matches + run: if [ "${{github.ref_name}}" = "$(scripts/version-check.sh)" ]; then exit 0; else exit 1; fi + - name: Dependencies run: sudo dnf install -y libadwaita-devel gtk4-devel make cargo gettext-devel zip diff --git a/Makefile b/Makefile index 94f7ecd..73dd721 100644 --- a/Makefile +++ b/Makefile @@ -29,3 +29,5 @@ clean-flatpak: rm -rf build-dir/* rm -rf .flatpak-builder/* +version-check: + bash scripts/version-check.sh diff --git a/scripts/version-check.sh b/scripts/version-check.sh new file mode 100755 index 0000000..de75392 --- /dev/null +++ b/scripts/version-check.sh @@ -0,0 +1,8 @@ +#!/bin/bash +APPDATA_VER=$(grep '