From b6acf93a906e4a3989d679f2cbc3df87285b6393 Mon Sep 17 00:00:00 2001 From: Henrik <15855905+high3eam@users.noreply.github.com> Date: Sat, 8 Feb 2025 23:27:17 +0100 Subject: [PATCH] Update release-lte-mod.yml --- .github/workflows/release-lte-mod.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-lte-mod.yml b/.github/workflows/release-lte-mod.yml index c8fd460..cefc0c9 100644 --- a/.github/workflows/release-lte-mod.yml +++ b/.github/workflows/release-lte-mod.yml @@ -14,10 +14,6 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - name: Get date - id: date - run: echo "VERSION=v$(date +'%Y-%m-%d')" >> $GITHUB_ENV - - name: Read module.prop id: module_prop run: | @@ -25,6 +21,7 @@ jobs: VERSIONCODE=$(grep "versionCode=" p9_lte_combos_mod/module.prop | cut -d= -f2) echo "MOD_VERSION=$VERSION" >> $GITHUB_ENV echo "MOD_VERSIONCODE=$VERSIONCODE" >> $GITHUB_ENV + echo "RELEASE_TAG=LTE-v$VERSIONCODE" >> $GITHUB_ENV - name: Zip folder working-directory: ./ @@ -39,8 +36,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ env.VERSION }} - name: Release ${{ env.VERSION }} + tag_name: ${{ env.RELEASE_TAG }} + name: Release ${{ env.RELEASE_TAG }} draft: false prerelease: false files: | @@ -52,8 +49,8 @@ jobs: { "version": "${{ env.MOD_VERSION }}", "versionCode": ${{ env.MOD_VERSIONCODE }}, - "zipUrl": "https://github.com/${{ github.repository }}/releases/download/${{ env.VERSION }}/p9_lte_combos_mod.zip", - "changelog": "https://github.com/${{ github.repository }}/releases/tag/${{ env.VERSION }}" + "zipUrl": "https://github.com/${{ github.repository }}/releases/download/${{ env.RELEASE_TAG }}/p9_lte_combos_mod.zip", + "changelog": "https://github.com/${{ github.repository }}/releases/tag/${{ env.RELEASE_TAG }}" } EOF