-
-
Notifications
You must be signed in to change notification settings - Fork 218
52 lines (43 loc) · 1.39 KB
/
tzdata-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: tzdata-update
on:
schedule:
- cron: '0 11 * * *'
jobs:
tzdata-update:
if: github.repository == 'FirebirdSQL/firebird'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch:
- master
- v5.0-release
- v4.0-release
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Checkout ICU
run: GIT_CLONE_PROTECTION_ACTIVE=false git clone --depth 1 https://github.com/unicode-org/icu-data.git -b main /tmp/icu-checkout
- name: Check and update
run: |
VERSION=`ls /tmp/icu-checkout/tzdata/icunew/ -r1a |head -1`
echo Last version: $VERSION
if [ "$VERSION" == "`cat extern/icu/tzdata/version.txt`" ]
then
exit
fi
echo $VERSION > extern/icu/tzdata/version.txt
extern/icu/tzdata/update.sh
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update tzdata to version ${{ env.VERSION }}.
title: Update tzdata to version ${{ env.VERSION }}.
assignees: asfernandes
branch: work/tzdata-update-${{ matrix.branch }}
base: ${{ matrix.branch }}
labels: |
type: task