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
|
|
|
|
|
2021-09-30 14:46:56 +02:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
branch:
|
|
|
|
- master
|
2024-01-12 12:49:02 +01:00
|
|
|
- v5.0-release
|
2021-09-30 14:46:56 +02:00
|
|
|
- v4.0-release
|
|
|
|
|
2020-01-14 17:07:47 +01:00
|
|
|
steps:
|
2024-08-09 11:53:30 +02:00
|
|
|
- uses: actions/checkout@v4
|
2021-09-30 14:46:56 +02:00
|
|
|
with:
|
|
|
|
ref: ${{ matrix.branch }}
|
2020-01-14 17:07:47 +01:00
|
|
|
|
|
|
|
- name: Checkout ICU
|
2024-05-18 18:47:55 +02:00
|
|
|
run: GIT_CLONE_PROTECTION_ACTIVE=false git clone --depth 1 https://github.com/unicode-org/icu-data.git -b main /tmp/icu-checkout
|
2020-01-14 17:07:47 +01:00
|
|
|
|
|
|
|
- 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
|
2021-10-23 15:53:51 +02:00
|
|
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
2020-01-14 17:07:47 +01:00
|
|
|
|
|
|
|
- name: Create Pull Request
|
2020-11-17 12:37:30 +01:00
|
|
|
uses: peter-evans/create-pull-request@v3.5.0
|
2020-01-14 17:07:47 +01:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2021-10-23 15:53:51 +02:00
|
|
|
commit-message: Update tzdata to version ${{ env.VERSION }}.
|
|
|
|
title: Update tzdata to version ${{ env.VERSION }}.
|
2020-01-14 17:07:47 +01:00
|
|
|
assignees: asfernandes
|
2021-09-30 14:46:56 +02:00
|
|
|
branch: work/tzdata-update-${{ matrix.branch }}
|
|
|
|
base: ${{ matrix.branch }}
|
|
|
|
labels: |
|
|
|
|
type: task
|