From e90ed283d2ab944bbb0b382724ad5f35d2283fe7 Mon Sep 17 00:00:00 2001 From: Pavol Pitonak Date: Tue, 16 Jun 2026 11:13:43 +0200 Subject: [PATCH] fix(release-notes): show changelog from previous tag in release notes previously release notes were showing changelog compared to v0.0.1 Signed-off-by: Pavol Pitonak --- .github/workflows/oci-builds.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/oci-builds.yml b/.github/workflows/oci-builds.yml index 24b9fce0..be77d136 100644 --- a/.github/workflows/oci-builds.yml +++ b/.github/workflows/oci-builds.yml @@ -150,8 +150,17 @@ jobs: skopeo copy -a \ docker://quay.io/aipcc-cicd/cloud-importer:v${{ env.VERSION }} \ docker://quay.io/aipcc-cicd/cloud-importer:latest + - name: Get previous release tag + id: prev + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: echo "tag=$(gh release list --repo "$GITHUB_REPOSITORY" --limit 1 --json tagName --jq '.[0].tagName')" >> "$GITHUB_OUTPUT" - name: Create GitHub Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create v${{ env.VERSION }} --title "Release v${{ env.VERSION }}" --generate-notes + ARGS="--generate-notes" + if [ -n "${{ steps.prev.outputs.tag }}" ]; then + ARGS="$ARGS --notes-start-tag ${{ steps.prev.outputs.tag }}" + fi + gh release create "v${{ env.VERSION }}" --title "Release v${{ env.VERSION }}" $ARGS