Upgrade to github-changelog-generator 0.0.3

Closes gh-23493
2.1.x
Phillip Webb 4 years ago
parent 956ee223be
commit abe169d593

@ -477,17 +477,17 @@ jobs:
params: params:
RELEASE_TYPE: M RELEASE_TYPE: M
<<: *artifactory-task-params <<: *artifactory-task-params
- task: generate-release-notes - task: generate-changelog
file: git-repo/ci/tasks/generate-release-notes.yml file: git-repo/ci/tasks/generate-changelog.yml
params: params:
RELEASE_TYPE: M RELEASE_TYPE: M
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-ci-release-token)) GITHUB_TOKEN: ((github-ci-release-token))
- put: github-pre-release - put: github-pre-release
params: params:
name: generated-release-notes/tag name: generated-changelog/tag
tag: generated-release-notes/tag tag: generated-changelog/tag
body: generated-release-notes/release-notes.md body: generated-changelog/changelog.md
- name: promote-rc - name: promote-rc
serial: true serial: true
plan: plan:
@ -506,17 +506,17 @@ jobs:
params: params:
RELEASE_TYPE: RC RELEASE_TYPE: RC
<<: *artifactory-task-params <<: *artifactory-task-params
- task: generate-release-notes - task: generate-changelog
file: git-repo/ci/tasks/generate-release-notes.yml file: git-repo/ci/tasks/generate-changelog.yml
params: params:
RELEASE_TYPE: RC RELEASE_TYPE: RC
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-ci-release-token)) GITHUB_TOKEN: ((github-ci-release-token))
- put: github-pre-release - put: github-pre-release
params: params:
name: generated-release-notes/tag name: generated-changelog/tag
tag: generated-release-notes/tag tag: generated-changelog/tag
body: generated-release-notes/release-notes.md body: generated-changelog/changelog.md
- name: promote-release - name: promote-release
serial: true serial: true
plan: plan:
@ -553,17 +553,17 @@ jobs:
params: params:
<<: *bintray-task-params <<: *bintray-task-params
<<: *sonatype-task-params <<: *sonatype-task-params
- task: generate-release-notes - task: generate-changelog
file: git-repo/ci/tasks/generate-release-notes.yml file: git-repo/ci/tasks/generate-changelog.yml
params: params:
RELEASE_TYPE: RELEASE RELEASE_TYPE: RELEASE
GITHUB_USERNAME: ((github-username)) GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-ci-release-token)) GITHUB_TOKEN: ((github-ci-release-token))
- put: github-release - put: github-release
params: params:
name: generated-release-notes/tag name: generated-changelog/tag
tag: generated-release-notes/tag tag: generated-changelog/tag
body: generated-release-notes/release-notes.md body: generated-changelog/changelog.md
groups: groups:
- name: "builds" - name: "builds"
jobs: ["build", "jdk11-build", "windows-build"] jobs: ["build", "jdk11-build", "windows-build"]

@ -0,0 +1,16 @@
#!/bin/bash
set -e
version=$( cat version/version )
milestone=${version}
if [[ $RELEASE_TYPE = "RELEASE" ]]; then
milestone=${version%.RELEASE}
fi
java -jar /github-changelog-generator.jar \
--changelog.repository=spring-projects/spring-boot \
${milestone} generated-changelog/changelog.md
echo ${version} > generated-changelog/version
echo v${version} > generated-changelog/tag

@ -1,19 +0,0 @@
#!/bin/bash
set -e
version=$( cat version/version )
milestone=${version}
if [[ $RELEASE_TYPE = "RELEASE" ]]; then
milestone=${version%.RELEASE}
fi
java -jar /github-release-notes-generator.jar \
--releasenotes.github.username=${GITHUB_USERNAME} \
--releasenotes.github.password=${GITHUB_TOKEN} \
--releasenotes.github.organization=spring-projects \
--releasenotes.github.repository=spring-boot \
${milestone} generated-release-notes/release-notes.md
echo ${version} > generated-release-notes/version
echo v${version} > generated-release-notes/tag

@ -3,13 +3,13 @@ platform: linux
image_resource: image_resource:
type: docker-image type: docker-image
source: source:
repository: springio/github-release-notes-generator repository: springio/github-changelog-generator
tag: '0.0.2' tag: '0.0.3'
inputs: inputs:
- name: git-repo - name: git-repo
- name: version - name: version
outputs: outputs:
- name: generated-release-notes - name: generated-changelog
params: params:
GITHUB_ORGANIZATION: GITHUB_ORGANIZATION:
GITHUB_REPO: GITHUB_REPO:
@ -17,4 +17,4 @@ params:
GITHUB_TOKEN: GITHUB_TOKEN:
RELEASE_TYPE: RELEASE_TYPE:
run: run:
path: git-repo/ci/scripts/generate-release-notes.sh path: git-repo/ci/scripts/generate-changelog.sh

Loading…
Cancel
Save