Workflows: add version and release names to commit
This commit is contained in:
parent
6e01a44a83
commit
93980aebb5
1 changed files with 9 additions and 1 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -86,9 +86,17 @@ jobs:
|
||||||
sed -i 's/jellyfin-androidtv/alaskartv-androidtv/' \
|
sed -i 's/jellyfin-androidtv/alaskartv-androidtv/' \
|
||||||
app-release/app/src/main/java/org/jellyfin/androidtv/ui/startup/fragment/SelectServerFragment.kt
|
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
|
- name: Push Source Code
|
||||||
env:
|
env:
|
||||||
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
VERSION_NAME: ${{ env.VERSION_NAME }}
|
||||||
|
VERSION_RELEASE: ${{ env.VERSION_RELEASE }}
|
||||||
run: |
|
run: |
|
||||||
cd app-release
|
cd app-release
|
||||||
rm -rf .git .github CODEOWNERS CONTRIBUTORS.md README.md
|
rm -rf .git .github CODEOWNERS CONTRIBUTORS.md README.md
|
||||||
|
@ -97,7 +105,7 @@ jobs:
|
||||||
git config --global user.name "AlaskarTV-Bot"
|
git config --global user.name "AlaskarTV-Bot"
|
||||||
git remote add origin https://${FORGEJO_TOKEN}:@git.askar.tv/nomad/alaskartv-source.git
|
git remote add origin https://${FORGEJO_TOKEN}:@git.askar.tv/nomad/alaskartv-source.git
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update"
|
git commit -m "Bumped to v${VERSION_NAME} : Release ${VERSION_RELEASE}"
|
||||||
git branch -M main
|
git branch -M main
|
||||||
git push origin main --force
|
git push origin main --force
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue