diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 46fbd3d3..623d89be 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -105,4 +105,22 @@ jobs: PACKAGE_VERSION=$(poetry version --short) RPM_VERSION=$(rpmspec -q --qf "%{version}" ci-scripts/linux/rpm/python3-nitrokey.spec) if [ $PACKAGE_VERSION == $RPM_VERSION ]; then exit 0; else exit 1; fi - + check-version-accordance-flatpak-metadata: + name: Check for version accordance with Flatpak metadata file + runs-on: ubuntu-latest + container: python:3.9-slim + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install required packages + run: | + apt update + apt install -y make python3-poetry + - name: Create virtual environment + run: make install + - name: Check versions + shell: bash + run: | + PACKAGE_VERSION=$(poetry version --short) + FLATPAK_VERSION=$(python -c "import xml.etree.ElementTree as ET; print(ET.parse('meta/com.nitrokey.nitrokey-app2.metainfo.xml').getroot().find('releases')[0].get('version'))") + if [ $PACKAGE_VERSION == $FLATPAK_VERSION ]; then exit 0; else exit 1; fi