8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00
firebird-mirror/.github/workflows/tzdata-update.yml
2020-04-26 10:51:24 -03:00

39 lines
995 B
YAML

name: tzdata-update
on:
schedule:
- cron: '0 11 * * *'
jobs:
tzdata-update:
if: github.repository == 'FirebirdSQL/firebird'
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