From 86c268120a2f2a7c8aede75812096c826fb4afd0 Mon Sep 17 00:00:00 2001 From: Kalle <15094562+ThatKalle@users.noreply.github.com> Date: Mon, 14 Apr 2025 13:58:34 +0000 Subject: [PATCH] move bump_metainfo, use requirements.txt --- .github/workflows/release_channels.yml | 6 +++--- bin/{ => bump_metainfo}/bump_metainfo.py | 0 bin/bump_metainfo/requirements.txt | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) rename bin/{ => bump_metainfo}/bump_metainfo.py (100%) create mode 100644 bin/bump_metainfo/requirements.txt diff --git a/.github/workflows/release_channels.yml b/.github/workflows/release_channels.yml index bd9e50fab..c5acbfafb 100644 --- a/.github/workflows/release_channels.yml +++ b/.github/workflows/release_channels.yml @@ -93,9 +93,9 @@ jobs: - name: Bump org.meshtastic.meshtasticd.metainfo.xml shell: bash run: | - pip install defusedxml -q - chmod +x ./bin/bump_metainfo.py - ./bin/bump_metainfo.py --file bin/org.meshtastic.meshtasticd.metainfo.xml "v${{ steps.version.outputs.long }}" + pip install -r bin/bump_metainfo/requirements.txt -q + chmod +x ./bin/bump_metainfo/bump_metainfo.py + ./bin/bump_metainfo/bump_metainfo.py --file bin/org.meshtastic.meshtasticd.metainfo.xml "v${{ steps.version.outputs.long }}" - name: Create metainfo.xml pull request uses: peter-evans/create-pull-request@v7 diff --git a/bin/bump_metainfo.py b/bin/bump_metainfo/bump_metainfo.py similarity index 100% rename from bin/bump_metainfo.py rename to bin/bump_metainfo/bump_metainfo.py diff --git a/bin/bump_metainfo/requirements.txt b/bin/bump_metainfo/requirements.txt new file mode 100644 index 000000000..09dd20d24 --- /dev/null +++ b/bin/bump_metainfo/requirements.txt @@ -0,0 +1 @@ +defusedxml==0.7.1