Skip to content

Commit 0c63ca5

Browse files
author
Corneil du Plessis
authored
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: ``` <Title> by @ in https://github.com/spring-cloud/spring-cloud-dataflow/pull/ ```
1 parent dac22b2 commit 0c63ca5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: .github/workflows/github-release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ jobs:
4141
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4242
run: |
4343
# generate release notes
44-
.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"
44+
.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"
45+
export PACKAGE_VERSION=${BUILD_ZOO_HANDLER_spring_cloud_dataflow_version}
46+
echo "## What's Changed in Spring Cloud Dataflow and Skipper from `v<previous-version>` to `v${PACKAGE_VERSION}` >> "${{runner.temp}}/release_notes.md"
47+
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"
4548
gh release create v$BUILD_ZOO_HANDLER_spring_cloud_dataflow_version \
4649
--draft \
4750
--title "Spring Cloud Data Flow $BUILD_ZOO_HANDLER_spring_cloud_dataflow_version" \
4851
--notes-file "${{runner.temp}}/release_notes.md"
4952
# retrieve spring-cloud-dataflow-package and upload to github release
50-
export PACKAGE_VERSION=${BUILD_ZOO_HANDLER_spring_cloud_dataflow_version}
5153
./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
5254
./spring-cloud-dataflow-package/set-package-version.sh
5355
./mvnw -s .settings.xml package -pl spring-cloud-dataflow-package -B --no-transfer-progress

0 commit comments

Comments
 (0)