Skip to content

tzdata-update

tzdata-update #1752

Workflow file for this run

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