2020-01-14 17:07:47 +01:00
|
|
|
name: tzdata-update
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 11 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tzdata-update:
|
2020-04-26 13:23:19 +02:00
|
|
|
if: github.repository == 'FirebirdSQL/firebird'
|
2020-01-14 17:07:47 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Checkout ICU
|
|
|
|
run: git clone --depth 1 https://github.com/unicode-org/icu-data.git -b master /tmp/icu-checkout
|
|
|
|
|
|
|
|
- name: Check and update
|
|
|
|
run: |
|
|
|
|
VERSION=`ls /tmp/icu-checkout/tzdata/icunew/ -r1a |head -1`
|
|
|
|
echo Last version: $VERSION
|
|
|
|
|
2020-01-21 16:57:31 +01:00
|
|
|
if [ "$VERSION" == "`cat extern/icu/tzdata/version.txt`" ]
|
2020-01-14 17:07:47 +01:00
|
|
|
then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2020-01-21 16:57:31 +01:00
|
|
|
echo $VERSION > extern/icu/tzdata/version.txt
|
|
|
|
extern/icu/tzdata/update.sh
|
2020-01-14 17:07:47 +01:00
|
|
|
|
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v2
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
commit-message: Updata tzdata.
|
|
|
|
title: Updata tzdata.
|
|
|
|
assignees: asfernandes
|
|
|
|
branch: work/tzdata-update
|