Skip to content

Commit

Permalink
Add version accordance check for Flatpak metadata file
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerklinger committed Nov 4, 2024
1 parent 3b026bc commit 43803ea
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 43803ea

Please sign in to comment.