| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,12 +34,22 @@ jobs: | |||
| 34 | 34 | - name: Record new version | |
| 35 | 35 | run: echo "new_version=$(ls icu-data/tzdata/icunew | tail -1)" >> $GITHUB_ENV | |
| 36 | 36 | ||
| 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 | + | ||
| 37 | 44 | - run: ./tools/update-timezone.mjs | |
| 45 | + if: ${{ env.new_version != env.current_version }} | ||
| 38 | 46 | ||
| 39 | 47 | - name: Update the expected timezone version in test | |
| 48 | + if: ${{ env.new_version != env.current_version }} | ||
| 40 | 49 | run: echo "${{ env.new_version }}" > test/fixtures/tz-version.txt | |
| 41 | 50 | ||
| 42 | 51 | - name: Open Pull Request | |
| 52 | + if: ${{ env.new_version != env.current_version }} | ||
| 43 | 53 | uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5 # Create a PR or update the Action's existing PR | |
| 44 | 54 | env: | |
| 45 | 55 | GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments