From 9ed1d4f60ecdeb3a84f3d7287533639f2a9b7ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Monta=C3=B1es=20Ojados?= Date: Sat, 17 Jan 2026 03:15:53 +0100 Subject: [PATCH] ci: automate release notes generation using git log --- .gitea/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a3a5a87..29793f4 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -93,12 +93,23 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Generate Changelog + run: | + # Get commits since the last tag (or since the beginning) + git log --oneline $(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || git rev-list --max-parents=0 HEAD)..HEAD > changelog.txt + - name: Download Artifacts uses: actions/download-artifact@v3 - name: Create Release uses: softprops/action-gh-release@v1 with: + body_path: changelog.txt files: | ts3-tui-windows-zip/ts3-tui-windows-x86_64.zip ts3-tui-linux-binaries/*