Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsonbrsilva committed May 4, 2024
1 parent 05fdf77 commit c065c99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions actions/release-creation/release-creation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ check_required_parameters() {
local missing_parameter=false

if is_missing "${GITHUB_REPOSITORY}"; then
printf "'GITHUB_REPOSITORY' is required."
printf "'GITHUB_REPOSITORY' is required.\n"
missing_parameter=true
fi

if is_missing "${GITHUB_TOKEN}"; then
printf "'GITHUB_TOKEN' is required."
printf "'GITHUB_TOKEN' is required.\n"
missing_parameter=true
fi

if is_missing "${VERSION}"; then
printf "'VERSION' is required."
printf "'VERSION' is required.\n"
missing_parameter=true
fi

if is_missing "${TARGET_COMMIT}"; then
printf "'TARGET_COMMIT' is required."
printf "'TARGET_COMMIT' is required.\n"
missing_parameter=true
fi

Expand Down Expand Up @@ -95,15 +95,15 @@ create_release() {
}" \
${url})

echo "${response_code}"
echo "Response code: ${response_code}"

if is_release_created "${response_code}"; then
printf "version=%s" "${version}" >> "${GITHUB_OUTPUT}"
printf "New generated release: %s\n" "${version}"
exit 0
fi

printf "Failed to generate release."
printf "Failed to generate release.\n"
exit 1
}

Expand Down

0 comments on commit c065c99

Please sign in to comment.