tzdata-update.yml 995 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: tzdata-update
  2. on:
  3. schedule:
  4. - cron: '0 11 * * *'
  5. jobs:
  6. tzdata-update:
  7. if: github.repository == 'FirebirdSQL/firebird'
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Checkout ICU
  12. run: git clone --depth 1 https://github.com/unicode-org/icu-data.git -b master /tmp/icu-checkout
  13. - name: Check and update
  14. run: |
  15. VERSION=`ls /tmp/icu-checkout/tzdata/icunew/ -r1a |head -1`
  16. echo Last version: $VERSION
  17. if [ "$VERSION" == "`cat extern/icu/tzdata/version.txt`" ]
  18. then
  19. exit
  20. fi
  21. echo $VERSION > extern/icu/tzdata/version.txt
  22. extern/icu/tzdata/update.sh
  23. - name: Create Pull Request
  24. uses: peter-evans/create-pull-request@v2
  25. with:
  26. token: ${{ secrets.GITHUB_TOKEN }}
  27. commit-message: Updata tzdata.
  28. title: Updata tzdata.
  29. assignees: asfernandes
  30. branch: work/tzdata-update