Workflows: add version and release names to commit

This commit is contained in:
nomadics9 2025-01-07 15:37:28 +03:00
parent 6e01a44a83
commit 93980aebb5
No known key found for this signature in database

View file

@ -86,9 +86,17 @@ jobs:
sed -i 's/jellyfin-androidtv/alaskartv-androidtv/' \
app-release/app/src/main/java/org/jellyfin/androidtv/ui/startup/fragment/SelectServerFragment.kt
- name: Parse release.txt
id: parse_release
run: |
VERSION_RELEASE=$(cat release.txt)
echo "VERSION_RELEASE=$VERSION_RELEASE" >> $GITHUB_ENV
- name: Push Source Code
env:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
VERSION_NAME: ${{ env.VERSION_NAME }}
VERSION_RELEASE: ${{ env.VERSION_RELEASE }}
run: |
cd app-release
rm -rf .git .github CODEOWNERS CONTRIBUTORS.md README.md
@ -97,7 +105,7 @@ jobs:
git config --global user.name "AlaskarTV-Bot"
git remote add origin https://${FORGEJO_TOKEN}:@git.askar.tv/nomad/alaskartv-source.git
git add .
git commit -m "Update"
git commit -m "Bumped to v${VERSION_NAME} : Release ${VERSION_RELEASE}"
git branch -M main
git push origin main --force