Skip to content

Commit

Permalink
Land #1002: CI: redirect changelog error to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
botovq committed Feb 18, 2024
2 parents 7f913c1 + 9dfeb07 commit eadd028
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set -e

# Check if the version argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <version>"
echo "Usage: $0 <version>" 1>&2
exit 1
fi

Expand All @@ -37,7 +37,7 @@ changelog=""

# Check if the specified changelog file exists
if [ ! -f "$changelog_file" ]; then
echo "Error: Changelog file '$changelog_file' not found"
echo "Error: Changelog file '$changelog_file' not found" 1>&2
exit 1
fi

Expand All @@ -60,7 +60,7 @@ done < "$changelog_file"

# If the specified version was not found, print an error
if ! $found_version; then
echo "Error: Version $version was not found in changelog"
echo "Error: Version $version was not found in changelog" 1>&2
exit 1
fi

Expand Down

0 comments on commit eadd028

Please sign in to comment.