refactor: Extract version from tag and add to translate ipk file

This commit is contained in:
Ivan Kvashonkin
2024-11-11 21:23:25 +03:00
parent 66c7eb0ccb
commit f520270864
2 changed files with 4 additions and 11 deletions

View File

@@ -26,8 +26,11 @@ jobs:
- name: Filter IPK files
run: |
# Извлекаем версию из тега, убирая префикс 'v'
VERSION=${GITHUB_REF#refs/tags/v}
mkdir -p ./filtered-bin
cp ./bin/luci-i18n-podkop-ru_*.ipk ./filtered-bin/
cp ./bin/luci-i18n-podkop-ru_*.ipk "./filtered-bin/luci-i18n-podkop-ru_${VERSION}.ipk"
cp ./bin/podkop_*.ipk ./filtered-bin/
cp ./bin/luci-app-podkop_*.ipk ./filtered-bin/