tzdata-update.yml 1.4 KB

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