Skip to content

Commit 4ad1fc4

Browse files
committed
ci(export): run parsing/copy from addon working directory; copy dotfiles
1 parent 7977aeb commit 4ad1fc4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/export-addon.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
python3 << 'PY'
4141
import os
4242
from xml.etree import ElementTree as ET
43-
tree = ET.parse('plugin.video.iptvxc/addon.xml')
43+
# we run inside the checked-out addon repo directory, parse addon.xml directly
44+
tree = ET.parse('addon.xml')
4445
root = tree.getroot()
4546
version = root.get('version')
4647
description = root.find('.//description').text.strip() if root.find('.//description') is not None else ''
@@ -74,7 +75,9 @@ jobs:
7475
7576
- name: Copy addon files
7677
run: |
77-
cp -r plugin.video.iptvxc/* kodi-repo/repository.nigel1992/addons/plugin.video.iptvxc/
78+
# include dotfiles and hidden files
79+
shopt -s dotglob || true
80+
cp -r ./* kodi-repo/repository.nigel1992/addons/plugin.video.iptvxc/
7881
7982
- name: Update Repository README
8083
run: |

0 commit comments

Comments
 (0)