mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 17:23:04 +01:00
38 lines
943 B
YAML
38 lines
943 B
YAML
name: tzdata-update
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 11 * * *'
|
|
|
|
jobs:
|
|
tzdata-update:
|
|
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
|
|
|
|
if [ "$VERSION" == "`cat extern/icu/tzdata/version.txt`" ]
|
|
then
|
|
exit
|
|
fi
|
|
|
|
echo $VERSION > extern/icu/tzdata/version.txt
|
|
extern/icu/tzdata/update.sh
|
|
|
|
- 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
|