From 93980aebb595a0558cbcd8c244a346805d174b72 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Tue, 7 Jan 2025 15:37:28 +0300 Subject: [PATCH] Workflows: add version and release names to commit --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8e525f..92d272e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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