Changeset - r25895:573b0b525189
[Not reviewed]
master
0 1 0
Patric Stout - 3 years ago 2021-08-15 12:14:13
truebrain@openttd.org
Fix: [Actions] changelog assumed major.minor.patch versioning (#9482)

We now use major.minor versioning, so it failed to pick up the
correct information.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
.github/changelog.sh
Show inline comments
 
@@ -4,9 +4,9 @@ tag=$(git name-rev --name-only --tags --
 

	
 
# 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
 

	
0 comments (0 inline, 0 general)