Skip to content

Commit 417c354

Browse files
committed
Read the latest Unicode version from the DerivedAge.txt header instead of the ReadMe prose
1 parent cd17392 commit 417c354

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/unicode-check.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ jobs:
2626
id: compare
2727
run: |
2828
pinned=$(sed -n 's/^PREFERRED_VERSION = "\(.*\)"$/\1/p' tools/idna-data)
29-
latest=$(curl -fsSL https://www.unicode.org/Public/UCD/latest/ReadMe.txt \
30-
| sed -n 's/.*Version \([0-9][0-9.]*\) of the Unicode Standard.*/\1/p' | head -1)
29+
# Read the version from a UCD data file header ("# DerivedAge-18.0.0.txt")
30+
# rather than the prose ReadMe, whose wording changes between releases.
31+
latest=$(curl -fsSL https://www.unicode.org/Public/UCD/latest/ucd/DerivedAge.txt \
32+
| sed -n '1s/^# DerivedAge-\([0-9][0-9.]*\)\.txt$/\1/p')
3133
echo "pinned=$pinned latest=$latest"
3234
if [ -z "$latest" ]; then
3335
echo "::error::Could not determine the latest Unicode version"

0 commit comments

Comments
 (0)