Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tz to 2021a #86

Merged
merged 3 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/bin/update-tz.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/sh

main() {
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 \
submodule update --init --force --recursive

set -xeu

cd tz

git fetch --tags --quiet origin
orig_tag="$(git describe)"

git checkout main
git pull --ff-only

new_tag="$(git describe --abbrev=0)"

if [ "$new_tag" != "$orig_tag" ]; then
git reset --hard "$new_tag"
cd ..
git add tz
tz_branch="update-tz-${new_tag}"
git checkout -b "$tz_branch"
git config user.name "Brandon W Maister"
git config user.email "quodlibetor@gmail.com"
msg="Update tz $orig_tag -> $new_tag"
git commit -m "$msg"
git push -u origin "$tz_branch"
echo "::set-output name=did_update::yes"
echo "::set-env name=PULL_REQUEST_FROM_BRANCH::${tz_branch}"
echo "::set-env name=PULL_REQUEST_TITLE::$msg"
echo "::set-env name=PULL_REQUEST_BODY=''"
echo "::set-env name=PULL_REQUEST_REVIEWERS='quodlibetor djzin'"
else
echo "::set-output name=did_update::no"
fi
}

main
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, ubuntu-16.04, macos-latest]
os: [ubuntu-latest, ubuntu-18.04, macos-latest]
include:
- os: ubuntu-latest
run_no_std: true
Expand Down
38 changes: 1 addition & 37 deletions .github/workflows/update-tz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,7 @@ jobs:
- name: Checkout and update submodules
id: update_tz
shell: sh
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 \
submodule update --init --force --recursive

set -xeu

cd tz

git fetch --tags --quiet origin
orig_tag="$(git describe)"

git checkout master
git pull --ff-only

new_tag="$(git describe --abbrev=0)"

if [ "$new_tag" != "$orig_tag" ]; then
git reset --hard "$new_tag"
cd ..
git add tz
tz_branch="update-tz-${new_tag}"
git checkout -b "$tz_branch"
git config user.name "Brandon W Maister"
git config user.email "quodlibetor@gmail.com"
msg="Update tz $orig_tag -> $new_tag"
git commit -m "$msg"
git push -u origin "$tz_branch"
echo "::set-output name=did_update::yes"
echo "::set-env name=PULL_REQUEST_FROM_BRANCH::${tz_branch}"
echo "::set-env name=PULL_REQUEST_TITLE::$msg"
echo "::set-env name=PULL_REQUEST_BODY=''"
echo "::set-env name=PULL_REQUEST_REVIEWERS='quodlibetor djzin'"
else
echo "::set-output name=did_update::no"
fi
run: .github/bin/update-tz.sh
- name: Create Pull Request
uses: quodlibetor/pull-request-action@1.0.6-patch1
if: ${{ steps.update_tz.outputs.did_update == 'yes' }}
Expand Down
2 changes: 1 addition & 1 deletion tz
Submodule tz updated 20 files
+48 −16 Makefile
+80 −0 NEWS
+209 −35 africa
+250 −79 asia
+82 −24 australasia
+1 −0 backward
+6 −0 backzone
+5 −6 etcetera
+20 −7 europe
+4 −4 leap-seconds.list
+4 −0 leapseconds.awk
+189 −13 northamerica
+3 −2 theory.html
+4 −0 tz-art.html
+52 −47 tz-link.html
+36 −0 zic.8
+11 −3 zic.c
+5 −4 ziguard.awk
+4 −5 zone.tab
+4 −5 zone1970.tab