Skip to content

Commit

Permalink
tools: check timezone current version
Browse files Browse the repository at this point in the history
PR-URL: #51178
Refs: #51107
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
marco-ippolito authored and RafaelGSS committed Jan 2, 2024
1 parent a07d6e2 commit 3759491
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/timezone-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,22 @@ jobs:
- name: Record new version
run: echo "new_version=$(ls icu-data/tzdata/icunew | tail -1)" >> $GITHUB_ENV

- name: Record current version
run: echo "current_version=$(cat ./test/fixtures/tz-version.txt)" >> $GITHUB_ENV

- name: Compare versions
run: |
echo "Comparing current version ${{ env.current_version }} to new version ${{ env.new_version }}"
- run: ./tools/update-timezone.mjs
if: ${{ env.new_version != env.current_version }}

- name: Update the expected timezone version in test
if: ${{ env.new_version != env.current_version }}
run: echo "${{ env.new_version }}" > test/fixtures/tz-version.txt

- name: Open Pull Request
if: ${{ env.new_version != env.current_version }}
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5 # Create a PR or update the Action's existing PR
env:
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
Expand Down

0 comments on commit 3759491

Please sign in to comment.