tzdata-update.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. strategy:
  10. fail-fast: false
  11. matrix:
  12. branch:
  13. - master
  14. - v4.0-release
  15. steps:
  16. - uses: actions/checkout@v3
  17. with:
  18. ref: ${{ matrix.branch }}
  19. - name: Checkout ICU
  20. run: git clone --depth 1 https://github.com/unicode-org/icu-data.git -b main /tmp/icu-checkout
  21. - name: Check and update
  22. run: |
  23. VERSION=`ls /tmp/icu-checkout/tzdata/icunew/ -r1a |head -1`
  24. echo Last version: $VERSION
  25. if [ "$VERSION" == "`cat extern/icu/tzdata/version.txt`" ]
  26. then
  27. exit
  28. fi
  29. echo $VERSION > extern/icu/tzdata/version.txt
  30. extern/icu/tzdata/update.sh
  31. echo "VERSION=$VERSION" >> $GITHUB_ENV
  32. - name: Create Pull Request
  33. uses: peter-evans/[email protected]
  34. with:
  35. token: ${{ secrets.GITHUB_TOKEN }}
  36. commit-message: Update tzdata to version ${{ env.VERSION }}.
  37. title: Update tzdata to version ${{ env.VERSION }}.
  38. assignees: asfernandes
  39. branch: work/tzdata-update-${{ matrix.branch }}
  40. base: ${{ matrix.branch }}
  41. labels: |
  42. type: task