tzdata-update #1755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |