diff options
author | Ilya Shipitsin <chipitsine@gmail.com> | 2024-02-18 10:41:20 +0100 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2024-03-03 15:32:50 -0600 |
commit | 33ea4b456dc51557ef16e3d693b330ce72d56265 (patch) | |
tree | 9f5053df5e152641126180648220d88d0ab28ca9 /.github | |
parent | 4b6c78a0f5caa28df34b043456d67e2247910854 (diff) | |
download | portable-33ea4b456dc51557ef16e3d693b330ce72d56265.tar.gz portable-33ea4b456dc51557ef16e3d693b330ce72d56265.tar.bz2 portable-33ea4b456dc51557ef16e3d693b330ce72d56265.zip |
CI: redirect changelog error to stdout
during CI stdout is redirected to "changelog.txt" and thus not seen
Diffstat (limited to '.github')
-rwxr-xr-x | .github/scripts/changelog.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/scripts/changelog.sh b/.github/scripts/changelog.sh index 76492cf..026549e 100755 --- a/.github/scripts/changelog.sh +++ b/.github/scripts/changelog.sh | |||
@@ -26,7 +26,7 @@ set -e | |||
26 | 26 | ||
27 | # Check if the version argument is provided | 27 | # Check if the version argument is provided |
28 | if [ "$#" -ne 1 ]; then | 28 | if [ "$#" -ne 1 ]; then |
29 | echo "Usage: $0 <version>" | 29 | echo "Usage: $0 <version>" 1>&2 |
30 | exit 1 | 30 | exit 1 |
31 | fi | 31 | fi |
32 | 32 | ||
@@ -37,7 +37,7 @@ changelog="" | |||
37 | 37 | ||
38 | # Check if the specified changelog file exists | 38 | # Check if the specified changelog file exists |
39 | if [ ! -f "$changelog_file" ]; then | 39 | if [ ! -f "$changelog_file" ]; then |
40 | echo "Error: Changelog file '$changelog_file' not found" | 40 | echo "Error: Changelog file '$changelog_file' not found" 1>&2 |
41 | exit 1 | 41 | exit 1 |
42 | fi | 42 | fi |
43 | 43 | ||
@@ -60,7 +60,7 @@ done < "$changelog_file" | |||
60 | 60 | ||
61 | # If the specified version was not found, print an error | 61 | # If the specified version was not found, print an error |
62 | if ! $found_version; then | 62 | if ! $found_version; then |
63 | echo "Error: Version $version was not found in changelog" | 63 | echo "Error: Version $version was not found in changelog" 1>&2 |
64 | exit 1 | 64 | exit 1 |
65 | fi | 65 | fi |
66 | 66 | ||