diff --git a/.github/workflows/timezone-update.yml b/.github/workflows/timezone-update.yml index d7c9305325f82b..b1f4274ba346f0 100644 --- a/.github/workflows/timezone-update.yml +++ b/.github/workflows/timezone-update.yml @@ -1,8 +1,8 @@ name: Timezone update on: - schedule: - # Run once a week at 00:05 AM UTC on Sunday. - - cron: 5 0 * * 0 + push: + branches: + - tools/add-version-info-to-timezone-update-PR workflow_dispatch: @@ -15,7 +15,6 @@ jobs: contents: write # to push local changes (gr2m/create-or-update-pull-request-action) pull-requests: write # to create a PR (gr2m/create-or-update-pull-request-action) - if: github.repository == 'nodejs/node' runs-on: ubuntu-latest steps: @@ -31,12 +30,15 @@ jobs: persist-credentials: false repository: unicode-org/icu-data + - name: Record new version + run: echo "new_version=$(ls icu-data/tzdata/icunew | tail -1)" >> $GITHUB_ENV + - run: ./tools/update-timezone.mjs - name: Open Pull Request uses: gr2m/create-or-update-pull-request-action@6720400cad8e74d7adc64640e4e6ea6748b83d8f # Create a PR or update the Action's existing PR env: - GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: author: Node.js GitHub Bot body: | @@ -48,8 +50,7 @@ jobs: ```js console.log(process.versions.tz) ``` - branch: actions/timezone-update - commit-message: 'deps: update timezone' + branch: tools/add-version-info-to-timezone-update-PR + commit-message: 'deps: update timezone to ${{ env.new_version }}' labels: dependencies - title: 'deps: update timezone' - reviewers: \@nodejs/i18n-api + title: 'deps: update timezone to ${{ env.new_version }}' diff --git a/deps/icu-small/source/data/in/icudt71l.dat.bz2 b/deps/icu-small/source/data/in/icudt71l.dat.bz2 index b08a91229ae4a0..80cea637d2521f 100644 Binary files a/deps/icu-small/source/data/in/icudt71l.dat.bz2 and b/deps/icu-small/source/data/in/icudt71l.dat.bz2 differ