@@ -39,11 +39,17 @@ jobs:
39
39
steps :
40
40
- name : Checkout Unicode Tools
41
41
uses : actions/checkout@v3
42
+ - name : Get the CLDR_REF from pom.xml
43
+ id : cldr_ref
44
+ run : echo "CLDR_REF="$(mvn help:evaluate -Dexpression=cldr.version -q -DforceStdout | cut -d- -f3) >> $GITHUB_OUTPUT && cat ${GITHUB_OUTPUT}
45
+ - name : Verify CLDR checkout ref
46
+ run : echo CLDR_REF="${{ steps.cldr_ref.outputs.CLDR_REF }}" && [ "${{ steps.cldr_ref.outputs.CLDR_REF }}x" != "x" ] # fail if empty
42
47
- name : Check out CLDR
43
48
uses : actions/checkout@v3
44
49
with :
45
50
repository : unicode-org/cldr
46
51
path : cldr
52
+ ref : ${{ steps.cldr_ref.outputs.CLDR_REF }}
47
53
- name : Move CLDR working copy to be sibling of Unicode Tools
48
54
run : |
49
55
mv cldr ..
@@ -198,7 +204,7 @@ jobs:
198
204
exit 1
199
205
fi
200
206
# TODO(#100): Note: when running locally on a clean checkout, this command
201
- # leaves a change in UcdPropertyValues.java by not preserving the comment
207
+ # leaves a change in UcdPropertyValues.java by not preserving the comment
202
208
# about the fake Unicode version 13.1.
203
209
env :
204
210
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -222,7 +228,7 @@ jobs:
222
228
mvn -s .github/workflows/mvn-settings.xml compile exec:java -Dexec.mainClass="org.unicode.draft.GenerateUnihanCollators" -Dexec.args="" -am -pl unicodetools -DCLDR_DIR=$(cd ../../../cldr/mine/src ; pwd) -DUNICODETOOLS_GEN_DIR=$(cd ../Generated ; pwd) -DUNICODETOOLS_REPO_DIR=$(pwd) -DUVERSION=$CURRENT_UVERSION
223
229
env :
224
230
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
225
-
231
+
226
232
# https://github.com/unicode-org/unicodetools/blob/main/docs/newunicodeproperties.md#checking-other-properties
227
233
- name : Run command - Checking Other Properties
228
234
run : |
0 commit comments