forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: add skeleton for automate time zone update
Fixes: nodejs#43134
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Timezone update | ||
on: | ||
schedule: | ||
# Run once a week at 00:05 AM UTC on Sunday. | ||
- cron: 5 0 * * 0 | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
authors_update: | ||
if: github.repository == 'nodejs/node' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '0' # This is required to actually get all the authors | ||
persist-credentials: false | ||
- run: tools/update-timezone.js # Run the timezone tool | ||
- uses: gr2m/create-or-update-pull-request-action@v1 # Create a PR or update the Action's existing PR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} | ||
with: | ||
author: Node.js GitHub Bot <github-bot@iojs.org> | ||
body: > | ||
updates the ICU files | ||
branch: actions/timezone-update # Custom branch *just* for this Action. | ||
commit-message: 'meta: update timezone' | ||
labels: meta | ||
title: 'meta: update timezone' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env node | ||
// Usage: tools/update-timezone.mjs [--dry] | ||
// Passing --dry will redirect output to stdout. | ||
|
||
console.log('Initial Skeleton'); |