From bed2fbaa76b6980cb077c8724ac051babca5380f Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Wed, 28 Jan 2026 02:04:45 +0100 Subject: [PATCH] Bump version to 1.2.3.4 and update release automation to generate commit log --- .github/workflows/release_automation.yml | 40 ++++++++++++++++++- .../Jellyfin.Plugin.MediaBarEnhanced.csproj | 2 +- .../Web/mediaBarEnhanced.css | 9 ++++- 3 files changed, 47 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release_automation.yml b/.github/workflows/release_automation.yml index 229ef1f..a8d2e5f 100644 --- a/.github/workflows/release_automation.yml +++ b/.github/workflows/release_automation.yml @@ -24,6 +24,8 @@ jobs: uses: actions/checkout@v6 with: token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + - name: Setup .NET uses: actions/setup-dotnet@v5 @@ -94,6 +96,40 @@ jobs: commit_message: "Update manifest.json for release v${{ env.VERSION }} [skip ci]" file_pattern: manifest.json + - name: Generate Commit Log + if: success() + shell: bash + run: | + echo "Generating commit log since last tag..." + + # Get the previous tag + PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "") + + if [ -z "$PREV_TAG" ]; then + echo "No previous tag found. Getting all commits." + start_range="" + else + echo "Previous tag: $PREV_TAG" + start_range="$PREV_TAG.." + fi + + echo "### What's Changed" > commit_log.md + echo "" >> commit_log.md + git log --pretty=format:"- %s (%h) by @%an" $start_range >> commit_log.md + + # Combine Changelog from manifest (if exists) and commit log + if [ -n "${{ env.CHANGELOG }}" ]; then + echo "${{ env.CHANGELOG }}" > release_body.txt + echo "" >> release_body.txt + echo "" >> release_body.txt + cat commit_log.md >> release_body.txt + else + cat commit_log.md > release_body.txt + fi + + # Debug output + cat release_body.txt + - name: Create Release uses: softprops/action-gh-release@v2 with: @@ -103,7 +139,9 @@ jobs: files: ${{ env.ZIP_PATH }} draft: false prerelease: false - generate_release_notes: true + generate_release_notes: false + body_path: release_body.txt + # Update Message in Remote Repository - name: Checkout Central Manifest Repo diff --git a/Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj b/Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj index 1e52304..e304400 100644 --- a/Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj +++ b/Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj @@ -12,7 +12,7 @@