diff options
| author | Ilya Shipitsin <chipitsine@gmail.com> | 2024-02-18 10:41:20 +0100 |
|---|---|---|
| committer | Ilya Shipitsin <chipitsine@gmail.com> | 2024-02-18 10:41:20 +0100 |
| commit | 9dfeb07676f0fb141b4172807e86691b386ffe0e (patch) | |
| tree | 0700b60668ef1b3c6a2682dc53e3e2a8838d0dbb /.github/scripts | |
| parent | 7f913c14cf9d899a819c31a6c399117ff63c3f91 (diff) | |
| download | portable-9dfeb07676f0fb141b4172807e86691b386ffe0e.tar.gz portable-9dfeb07676f0fb141b4172807e86691b386ffe0e.tar.bz2 portable-9dfeb07676f0fb141b4172807e86691b386ffe0e.zip | |
CI: redirect changelog error to stdout
during CI stdout is redirected to "changelog.txt" and thus not seen
Diffstat (limited to '.github/scripts')
| -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 | ||
