From: Marcel van der Veldt Date: Thu, 23 Oct 2025 07:54:20 +0000 (+0200) Subject: Small optimization to release action X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=31ad95281901edd1ad879492a3629baafee02e79;p=music-assistant-server.git Small optimization to release action --- diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5649bb29..4986d16a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -219,12 +219,19 @@ jobs: PREV_TAG=$(git tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.b[0-9]+$' | head -n 1) ;; nightly) + # Try to find previous nightly PREV_TAG=$(git tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.dev[0-9]+$' | head -n 1) + + # If no nightly found, fall back to last prerelease (beta) + if [ -z "$PREV_TAG" ]; then + echo "⚠️ No previous nightly found, falling back to last prerelease" + PREV_TAG=$(git tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.(b|dev)[0-9]+$' | head -n 1) + fi ;; esac if [ -z "$PREV_TAG" ]; then - echo "⚠️ No previous $CHANNEL release found" + echo "⚠️ No previous $CHANNEL release found (and no fallback available)" echo "prev_tag=" >> $GITHUB_OUTPUT echo "has_prev_tag=false" >> $GITHUB_OUTPUT else @@ -546,7 +553,7 @@ jobs: uses: actions/checkout@v5 with: repository: music-assistant/home-assistant-addon - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PRIVILEGED_GITHUB_TOKEN }} path: addon-repo - name: Get release notes