From 262d2c73a798df0e2d6a7e2924dd06f27260d0fa Mon Sep 17 00:00:00 2001 From: "Filipe Oliveira (Personal)" Date: Thu, 21 Nov 2024 14:59:37 +0000 Subject: [PATCH] Fixing the changelog version/release info in case of smoketest (#279) --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a064690..502a7f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,13 +34,18 @@ jobs: debhelper dput libevent-dev libpcre2-dev libssl-dev pkg-config - name: Create changelog env: - VERSION: ${{ github.event.release.tag_name }} + VERSION: ${{ github.event.inputs.tag_name || github.event.release.tag_name }} DIST: ${{ matrix.dist }} run: | mkdir -p sources/debian + if [ "${{ github.event_name }}" = "release" ]; then + RELEASE_URL=": ${{ github.event.release.html_url }}" + else + RELEASE_URL="" + fi (echo "memtier-benchmark ($VERSION~$DIST) $DIST; urgency=medium" echo "" - echo " * Release ${{ github.event.release.tag_name }}: ${{ github.event.release.html_url }}" + echo " * Release $VERSION$RELEASE_URL" echo "" echo " -- Redis Team $(date -R)") > sources/debian/changelog - name: Build source package