File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,22 @@ jobs:
3434 - name: Record new version
3535 run: echo "new_version=$(ls icu-data/tzdata/icunew | tail -1)" >> $GITHUB_ENV
3636
37+ - name: Record current version
38+ run: echo "current_version=$(cat ./test/fixtures/tz-version.txt)" >> $GITHUB_ENV
39+
40+ - name: Compare versions
41+ run: |
42+ echo "Comparing current version ${{ env.current_version }} to new version ${{ env.new_version }}"
43+
3744 - run: ./tools/update-timezone.mjs
45+ if: ${{ env.new_version != env.current_version }}
3846
3947 - name: Update the expected timezone version in test
48+ if: ${{ env.new_version != env.current_version }}
4049 run: echo "${{ env.new_version }}" > test/fixtures/tz-version.txt
4150
4251 - name: Open Pull Request
52+ if: ${{ env.new_version != env.current_version }}
4353 uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5 # Create a PR or update the Action's existing PR
4454 env:
4555 GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
You can’t perform that action at this time.
0 commit comments