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

[next] fix: update timezone data and automate future updates #5574

Merged
merged 1 commit into from
May 9, 2024
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
49 changes: 49 additions & 0 deletions .github/workflows/update_timezones.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Update timezones-data (zones.json)

on:
workflow_dispatch:
schedule:
- cron: "5 4 1 * *"

jobs:
update-timezones:
runs-on: ubuntu-latest
name: update-timezones

steps:
- uses: actions/checkout@v4

- name: Download vzic
run: git clone https://github.com/libical/vzic.git

- name: Build vzic
run: |
cd vzic
make -B

- name: Get python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Execute update script
run: python resources/timezones/update-zones.py --vzic vzic/vzic

- name: Remove vzic
run: rm -r vzic

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
commit-message: "fix: update timezones data"
committer: GitHub <[email protected]>
author: nextcloud-command <[email protected]>
signoff: true
branch: automated/noid/update-timezones-data
base: main
title: "Update timezones data"
body: |
Auto-generated update of timezones data
labels: |
3. to review
Loading
Loading