From 0c63ca55acb23e088b28452d509a6fc367fd320a Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Thu, 12 Dec 2024 23:10:59 +0200 Subject: [PATCH] Add closed PRs for the miestone to the release notes Adds an entry for each closed PR in the release milestone to the release notes in the format: ``` by @ in https://github.com/spring-cloud/spring-cloud-dataflow/pull/ ``` --- .github/workflows/github-release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 197060648e..d89beb23be 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -41,13 +41,15 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} run: | # generate release notes - .github/workflows/generate-release-notes.sh "${{ runner.temp }}" "$BUILD_ZOO_HANDLER_spring_cloud_deployer_version" "$BUILD_ZOO_HANDLER_spring_cloud_dataflow_ui_version" "$BUILD_ZOO_HANDLER_spring_cloud_dataflow_version" + .github/workflows/generate-release-notes.sh "${{ runner.temp }}" "$BUILD_ZOO_HANDLER_spring_cloud_deployer_version" "$BUILD_ZOO_HANDLER_spring_cloud_dataflow_ui_version" "$BUILD_ZOO_HANDLER_spring_cloud_dataflow_version" + export PACKAGE_VERSION=${BUILD_ZOO_HANDLER_spring_cloud_dataflow_version} + echo "## What's Changed in Spring Cloud Dataflow and Skipper from `v<previous-version>` to `v${PACKAGE_VERSION}` >> "${{runner.temp}}/release_notes.md" + gh pr list --search "milestone:$PACKAGE_VERSION" --state closed --json=number,title,author --jq '.[] | "* " + .title + " by @" + .author.login + " in https://github.com/spring-cloud/spring-cloud-dataflow/pull/" + (.number|tostring)' >> "${{runner.temp}}/release_notes.md" gh release create v$BUILD_ZOO_HANDLER_spring_cloud_dataflow_version \ --draft \ --title "Spring Cloud Data Flow $BUILD_ZOO_HANDLER_spring_cloud_dataflow_version" \ --notes-file "${{runner.temp}}/release_notes.md" # retrieve spring-cloud-dataflow-package and upload to github release - export PACKAGE_VERSION=${BUILD_ZOO_HANDLER_spring_cloud_dataflow_version} ./mvnw -s .settings.xml build-helper:parse-version versions:set -DskipResolution=true -DprocessAllModules=true -DgenerateBackupPoms=false -Dartifactory.publish.artifacts=false -DnewVersion=$PACKAGE_VERSION -B --no-transfer-progress ./spring-cloud-dataflow-package/set-package-version.sh ./mvnw -s .settings.xml package -pl spring-cloud-dataflow-package -B --no-transfer-progress