From 06ea877f016ff4cb980ea4f5a807fc9f1ce6e834 Mon Sep 17 00:00:00 2001 From: David Zager Date: Mon, 27 Nov 2023 15:24:27 -0500 Subject: [PATCH] :seedling: just take previous version as input Signed-off-by: David Zager --- .github/workflows/create-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index fae22e6..fb768ea 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -6,6 +6,9 @@ on: version: description: 'The semantic version of the release (e.g. v1.2.3)' required: true + previous_version: + description: 'The semantic version of the previous release (e.g. v1.2.3)' + required: true branch: description: 'The branch to create the release from (defaults to main)' required: false @@ -278,11 +281,11 @@ jobs: ) echo "Konveyor Operator ${{ inputs.version }}" > changelog.md - echo "=======================================" > changelog.md + echo "=======================================" >> changelog.md echo "" >> changelog.md for repo in "${repositories[@]}"; do - echo "# ${repo}" + echo "# ${repo}" >> changelog.md echo "" >> changelog.md gh release view "${{ inputs.version }}" --repo "${repo}" --json body --jq .body >> changelog.md echo "" >> changelog.md