summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-08-15 14:14:13 +0200
committerGitHub <noreply@github.com>2021-08-15 14:14:13 +0200
commitb2eafcc720968b97f3181f840fae41b9c91af81d (patch)
tree61002c11494bd279b7f75af0da676a23a7e9e646 /.github
parentb67ef1e5b85cda0af8be0c7d99b8b00b5ec05ebb (diff)
downloadopenttd-b2eafcc720968b97f3181f840fae41b9c91af81d.tar.xz
Fix: [Actions] changelog assumed major.minor.patch versioning (#9482)
We now use major.minor versioning, so it failed to pick up the correct information.
Diffstat (limited to '.github')
-rwxr-xr-x.github/changelog.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/changelog.sh b/.github/changelog.sh
index ea0da948c..b057ad475 100755
--- a/.github/changelog.sh
+++ b/.github/changelog.sh
@@ -4,9 +4,9 @@ tag=$(git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null | sed 's@\
# If we are a tag, show the part of the changelog till (but excluding) the last stable
if [ -n "$tag" ]; then
- grep='^[0-9]\+\.[0-9]\+\.[0-9]\+[^-]'
+ grep='^[0-9]\+\.[0-9]\+[^-]'
next=$(cat changelog.txt | grep '^[0-9]' | awk 'BEGIN { show="false" } // { if (show=="true") print $0; if ($1=="'$tag'") show="true"} ' | grep "$grep" | head -n1 | sed 's/ .*//')
- cat changelog.txt | awk 'BEGIN { show="false" } /^[0-9]+.[0-9]+.[0-9]+/ { if ($1=="'$next'") show="false"; if ($1=="'$tag'") show="true";} // { if (show=="true") print $0 }'
+ cat changelog.txt | awk 'BEGIN { show="false" } /^[0-9]+.[0-9]+/ { if ($1=="'$next'") show="false"; if ($1=="'$tag'") show="true";} // { if (show=="true") print $0 }'
exit 0
fi