Skip to content

Commit

Permalink
Update workflows to use target repository identifier for all releases
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Mar 22, 2024
1 parent 35ca9bb commit 6806edd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ jobs:
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
xmlstarlet ed -L -P \
-s '/addon/extension[@point="xbmc.addon.metadata"]' -t elem -n news -v "${news:0:1500}" \
-u '/addon/@version' -v "${version}+nexus.1" \
addon.xml
filename=${{ github.event.repository.name }}-${version}.zip
filename=${{ github.event.repository.name }}-${version}.nexus.1.zip
cd ..
zip -r $filename ${{ github.event.repository.name }}
mv .git ${{ github.event.repository.name }}
Expand All @@ -84,9 +85,9 @@ jobs:
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
xmlstarlet ed -L -P \
-s '/addon/extension[@point="xbmc.addon.metadata"]' -t elem -n news -v "${news:0:1500}" \
-u '/addon/@version' -v "${version}+unofficial.1" \
-u '/addon/@version' -v "${version}+nexus.unofficial.1" \
addon.xml
filename=${{ github.event.repository.name }}-${version}.unofficial.1.zip
filename=${{ github.event.repository.name }}-${version}.nexus.unofficial.1.zip
cd ..
zip -r $filename ${{ github.event.repository.name }}
mv .git ${{ github.event.repository.name }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/submit-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ jobs:
news=$(awk '/^## /{rel_num++} {if(rel_num==2){exit} if(rel_num==1){print}}' changelog.txt | sed -E 's/ ?#[[:digit:]]+[., ]?//;s/\r//')
xmlstarlet ed -L -P \
-s '/addon/extension[@point="xbmc.addon.metadata"]' -t elem -n news -v "${news:0:1500}" \
-u '/addon/@version' -v "${version}+nexus.1" \
addon.xml
git add .
git commit -m "Update news"
git commit -m "Update news and repository identifier"
working-directory: ${{ github.event.repository.name }}

- name: Submit to Official Repository (Nexus)
Expand Down

0 comments on commit 6806edd

Please sign in to comment.