From 02eaf7dba1636566cd220e844f903836ad8a603e Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Wed, 13 Sep 2023 11:25:04 +1000 Subject: [PATCH] Update submit-release workflow for Matrix --- .github/workflows/submit-release.yml | 32 ++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/submit-release.yml b/.github/workflows/submit-release.yml index 44af0538b..17a5e30f1 100644 --- a/.github/workflows/submit-release.yml +++ b/.github/workflows/submit-release.yml @@ -40,8 +40,8 @@ jobs: git config --global user.name "anxdpanic" git config --global user.email "anxdpanic@users.noreply.github.com" - - name: Staging for Official Repository (Isengard) - id: stage-isengard + - name: Staging for Official Repository (Nexus) + id: stage-nexus run: | mv .git .. rm -rf .??* @@ -88,3 +88,31 @@ jobs: GH_USERNAME: anxdpanic GH_TOKEN: ${{ secrets.ADDON_SUBMISSION_TOKEN }} EMAIL: anxdpanic@users.noreply.github.com + + - name: Staging for Official Repository (Matrix) + id: stage-matrix + run: | + git reset --hard ${{ github.sha }} + git checkout . + git clean -fdx + mv .git .. + rm -rf .??* + mv ../.git . + rm *.md + version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml) + xmlstarlet ed -L -u '/addon/@version' -v "${version}+matrix.1" addon.xml + xmlstarlet ed -L -u '/addon/requires/import[@addon="xbmc.python"]/@version' -v '3.0.0' addon.xml + xmlstarlet ed -L -d '/addon/requires/import[@addon="script.module.infotagger"]' addon.xml + git add . + git commit -m "Kodi 19 Patch" + working-directory: ${{ github.event.repository.name }} + + - name: Submit to Official Repository (Matrix) + id: submit-matrix + run: | + submit-addon -r repo-plugins -b matrix --pull-request ${{ github.event.repository.name }} + working-directory: ${{ github.event.repository.name }} + env: + GH_USERNAME: anxdpanic + GH_TOKEN: ${{ secrets.ADDON_SUBMISSION_TOKEN }} + EMAIL: anxdpanic@users.noreply.github.com