Fix release generation CI script
This commit is contained in:
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
echo "VARIABLES"
|
||||||
|
echo "CI_COMMIT_TAG=${CI_COMMIT_TAG}"
|
||||||
|
echo "CI_API_V4_URL=${CI_API_V4_URL}"
|
||||||
|
echo "CI_PROJECT_ID=${CI_PROJECT_ID}"
|
||||||
|
echo "CI_PIPELINE_ID=${CI_PIPELINE_ID}"
|
||||||
|
echo "CI_PROJECT_URL=${CI_PROJECT_URL}"
|
||||||
|
|
||||||
# The release notes for this version should be the first line of the CHANGELOG.
|
# The release notes for this version should be the first line of the CHANGELOG.
|
||||||
if [[ $(head -n 1 CHANGELOG.rst) == "${CI_COMMIT_TAG}" ]]; then
|
if [[ $(head -n 1 CHANGELOG.rst) == "${CI_COMMIT_TAG}" ]]; then
|
||||||
# Extract all of the bullet points and other things until the next header.
|
# Extract all of the bullet points and other things until the next header.
|
||||||
@@ -40,11 +47,13 @@ if [[ "${milestone}" != "" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine whether or not to include the Flatpak build.
|
# Determine whether or not to include the Flatpak build.
|
||||||
|
set +e
|
||||||
failed=$(curl \
|
failed=$(curl \
|
||||||
--header "PRIVATE-TOKEN: ${RELEASE_PUBLISH_TOKEN}" \
|
--header "PRIVATE-TOKEN: ${RELEASE_PUBLISH_TOKEN}" \
|
||||||
--request GET \
|
--request GET \
|
||||||
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/jobs?scope[]=failed" \
|
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/jobs?scope[]=failed" \
|
||||||
| grep '"name":"build_flatpak"')
|
| grep '"name":"build_flatpak"')
|
||||||
|
set -e
|
||||||
|
|
||||||
assets=""
|
assets=""
|
||||||
if [[ $failed == "" ]]; then
|
if [[ $failed == "" ]]; then
|
||||||
|
Reference in New Issue
Block a user