Testing some hard to reach instrunctions
This commit is contained in:
@@ -32,13 +32,13 @@ fi
|
|||||||
if [[ -n "$ISSUE_ID" ]]; then
|
if [[ -n "$ISSUE_ID" ]]; then
|
||||||
issue_state="$(curl -H \"PRIVATE-TOKEN: $REPORTER_BOT_ACCESS_TOKEN\" \
|
issue_state="$(curl -H \"PRIVATE-TOKEN: $REPORTER_BOT_ACCESS_TOKEN\" \
|
||||||
https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/issue/$ISSUE_ID | jq .state)"
|
https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/issue/$ISSUE_ID | jq .state)"
|
||||||
if [[ "$issue_state" == "closed" ]]; then
|
# if [[ "$issue_state" == "closed" ]]; then
|
||||||
echo "An issue exist, but is closed. Removing ISSUE_ID schedule variable..."
|
echo "An issue exist, but is closed. Removing ISSUE_ID schedule variable..."
|
||||||
echo 'curl -X DELETE \
|
echo 'curl -X DELETE \
|
||||||
-H "PRIVATE-TOKEN: $REPORTER_BOT_ACCESS_TOKEN" \
|
-H "PRIVATE-TOKEN: $REPORTER_BOT_ACCESS_TOKEN" \
|
||||||
https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/pipeline_schedules/$SCHEDULE_ID/variables/ISSUES_ID'
|
https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/pipeline_schedules/$SCHEDULE_ID/variables/ISSUES_ID'
|
||||||
else
|
# else
|
||||||
exit_with_message_and_code "An issue already exists, it is not closed yet." 0
|
# exit_with_message_and_code "An issue already exists, it is not closed yet." 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -55,8 +55,8 @@ installed_version=$(docker run --rm --entrypoint="" $CI_REGISTRY_IMAGE:latest \
|
|||||||
|
|
||||||
# Create an issue if a new version was released.
|
# Create an issue if a new version was released.
|
||||||
if [[ "$installed_version" == "$candidate_version" ]]; then
|
if [[ "$installed_version" == "$candidate_version" ]]; then
|
||||||
exit_with_message_and_code "No new version of the seafile-cli package have been released." 0
|
# exit_with_message_and_code "No new version of the seafile-cli package have been released." 0
|
||||||
else
|
#else
|
||||||
echo "A new version of the seafile-cli package have been released. Creating a new issue..."
|
echo "A new version of the seafile-cli package have been released. Creating a new issue..."
|
||||||
data=$(jq -n \
|
data=$(jq -n \
|
||||||
--arg title "seafile-cli v${candidate_version} was released" \
|
--arg title "seafile-cli v${candidate_version} was released" \
|
||||||
|
|||||||
Reference in New Issue
Block a user