From 8eecddd61c03df0313fb39dcd29f30e8d7ea570f Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Mon, 6 Jan 2025 01:16:40 +0300 Subject: [PATCH] testing --- .github/workflows/main.yml | 16 +++++++++++----- release.txt | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70649e0..20aa2b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -116,7 +116,6 @@ jobs: - name: Build APK run: | cd app-release - ./gradlew clean ./gradlew assembleRelease - name: Build AAB @@ -178,12 +177,19 @@ jobs: VERSION_CODE: ${{ env.VERSION_CODE }} - - name: release-notes + - name: Fetch Release Notes + id: fetch-release-notes run: | - TAG=$(cat release.txt) - RELEASE_NOTES=$(curl -s "https://api.github.com/repos/jellyfin/jellyfin-androidtv/releases/tags/$TAG" | jq -r '.body') + TAG=$(cat release.txt) + RELEASE_NOTES=$(curl -s "https://api.github.com/repos/jellyfin/jellyfin-androidtv/releases/tags/$TAG" | jq -r '.body') - echo "RELEASE_NOTES=$RELEASE_NOTES" >> $GITHUB_ENV + if [ -z "$RELEASE_NOTES" ] || [ "$RELEASE_NOTES" == "null" ]; then + echo "Error: Release notes not found for tag $TAG." + exit 1 + fi + + echo "release_notes=$RELEASE_NOTES" >> $GITHUB_ENV + shell: bash - name: Create Release and Upload Assets diff --git a/release.txt b/release.txt index 2b91414..c96e646 100644 --- a/release.txt +++ b/release.txt @@ -1 +1,2 @@ v0.18.3 +