tzdata-update.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: tzdata-update
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '0 11 * * *'
  6. jobs:
  7. tzdata-update:
  8. if: github.repository == 'FirebirdSQL/firebird'
  9. runs-on: ubuntu-latest
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. branch:
  14. - master
  15. - v5.0-release
  16. - v4.0-release
  17. steps:
  18. - uses: actions/checkout@v4
  19. with:
  20. ref: ${{ matrix.branch }}
  21. - name: Download ICU
  22. run: |
  23. wget --no-verbose -O /tmp/icu.zip https://github.com/unicode-org/icu-data/archive/refs/heads/main.zip
  24. unzip -d /tmp /tmp/icu.zip
  25. - name: Check and update
  26. run: |
  27. VERSION=`ls /tmp/icu-data-main/tzdata/icunew/ -r1a |head -1`
  28. echo Last version: $VERSION
  29. if [ "$VERSION" == "`cat extern/icu/tzdata/version.txt`" ]
  30. then
  31. exit
  32. fi
  33. echo $VERSION > extern/icu/tzdata/version.txt
  34. extern/icu/tzdata/update.sh
  35. echo "VERSION=$VERSION" >> $GITHUB_ENV
  36. - name: Create Pull Request
  37. uses: peter-evans/[email protected]
  38. with:
  39. token: ${{ secrets.GITHUB_TOKEN }}
  40. commit-message: Update tzdata to version ${{ env.VERSION }}.
  41. title: Update tzdata to version ${{ env.VERSION }}.
  42. assignees: asfernandes
  43. branch: work/tzdata-update-${{ matrix.branch }}
  44. base: ${{ matrix.branch }}
  45. labels: |
  46. type: task