Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
89b4d5e6
Commit
89b4d5e6
authored
Oct 16, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
f154d404
54966bea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
publish-release-notes.sh
ci/scripts/publish-release-notes.sh
+4
-4
No files found.
ci/scripts/publish-release-notes.sh
View file @
89b4d5e6
...
...
@@ -3,9 +3,9 @@ set -e
source
$(
dirname
$0
)
/common.sh
milestone
=
$(
cat
version/version
)
version
=
$(
cat
version/version
)
if
[[
$RELEASE_TYPE
=
"RELEASE"
]]
;
then
milestone
=
${
milestone
%.RELEASE
}
milestone
=
${
version
%.RELEASE
}
fi
milestone_number
=
$(
curl
-s
"https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/milestones"
-u
${
GITHUB_USERNAME
}
:
${
GITHUB_PASSWORD
}
| jq
-r
--arg
MILESTONE
"
${
milestone
}
"
'.[] | select(.title == $MILESTONE) | .number'
)
...
...
@@ -15,13 +15,13 @@ java -jar -Dreleasenotes.github.organization=${GITHUB_ORGANIZATION} -Dreleasenot
popd
>
/dev/null
body
=
$(
while
read
line
;
do
echo
-n
"
$line
\\
n"
;
done
<
release-notes-repo/release-notes.md
)
body
=
$(
sed
-E
':a;N;$!ba;s/\r{0,1}\n/\\n/g'
release-notes-repo/release-notes.md
)
curl
\
-s
\
-u
${
GITHUB_USERNAME
}
:
${
GITHUB_PASSWORD
}
\
-H
"Content-type:application/json"
\
-d
"{
\"
tag_name
\"
:
\"
v
${
milestone
}
\"
,
\"
name
\"
:
\"
v
${
milestone
}
\"
,
\"
body
\"
:
\"
${
body
}
\"
}"
\
-d
"{
\"
tag_name
\"
:
\"
v
${
version
}
\"
,
\"
name
\"
:
\"
v
${
version
}
\"
,
\"
body
\"
:
\"
${
body
}
\"
}"
\
-f
\
-X
\
POST
"https://api.github.com/repos/
${
GITHUB_ORGANIZATION
}
/
${
GITHUB_REPO
}
/releases"
>
/dev/null
||
{
echo
"Failed to publish"
>
&2
;
exit
1
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment