| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 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
- - v4.0-release
- steps:
- - uses: actions/checkout@v3
- with:
- ref: ${{ matrix.branch }}
- - name: Checkout ICU
- run: 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
|