Skip to content

Commit 807aeba

Browse files
committed
Replace tzdata update method from ICU git checkout to zip download.
1 parent a2b05f4 commit 807aeba

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: .github/workflows/tzdata-update.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: tzdata-update
22

33
on:
4+
workflow_dispatch:
45
schedule:
56
- cron: '0 11 * * *'
67

@@ -22,12 +23,14 @@ jobs:
2223
with:
2324
ref: ${{ matrix.branch }}
2425

25-
- name: Checkout ICU
26-
run: GIT_CLONE_PROTECTION_ACTIVE=false git clone --depth 1 https://github.com/unicode-org/icu-data.git -b main /tmp/icu-checkout
26+
- name: Download ICU
27+
run: |
28+
wget --no-verbose -O /tmp/icu.zip https://github.com/unicode-org/icu-data/archive/refs/heads/main.zip
29+
unzip -d /tmp /tmp/icu.zip
2730
2831
- name: Check and update
2932
run: |
30-
VERSION=`ls /tmp/icu-checkout/tzdata/icunew/ -r1a |head -1`
33+
VERSION=`ls /tmp/icu-data-main/tzdata/icunew/ -r1a |head -1`
3134
echo Last version: $VERSION
3235
3336
if [ "$VERSION" == "`cat extern/icu/tzdata/version.txt`" ]

0 commit comments

Comments
 (0)