-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.36 KB
/
update_timezones.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Update timezones-data (zones.json)
on:
workflow_dispatch:
schedule:
- cron: "5 4 1 * *"
jobs:
update-timezones:
runs-on: ubuntu-latest
name: update-timezones
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@0b93645e9fea7318ecaed2b359559ac225c90a2b # 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@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7
with:
commit-message: "fix: update timezones data"
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