mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:03:02 +01:00
Added github action cronjob for automatic creation of tzdata update pull request.
This commit is contained in:
parent
b9f4c65220
commit
236fc7ac14
37
.github/workflows/tzdata-update.yml
vendored
Normal file
37
.github/workflows/tzdata-update.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: tzdata-update
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 11 * * *'
|
||||
|
||||
jobs:
|
||||
tzdata-update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout ICU
|
||||
run: git clone --depth 1 https://github.com/unicode-org/icu-data.git -b master /tmp/icu-checkout
|
||||
|
||||
- name: Check and update
|
||||
run: |
|
||||
VERSION=`ls /tmp/icu-checkout/tzdata/icunew/ -r1a |head -1`
|
||||
echo Last version: $VERSION
|
||||
|
||||
if [ "$VERSION" == "`cat tzdata/version.txt`" ]
|
||||
then
|
||||
exit
|
||||
fi
|
||||
|
||||
echo $VERSION > tzdata/version.txt
|
||||
tzdata/update.sh
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit-message: Updata tzdata.
|
||||
title: Updata tzdata.
|
||||
assignees: asfernandes
|
||||
branch: work/tzdata-update
|
Loading…
Reference in New Issue
Block a user