Skip to content

Commit 8f47e69

Browse files
bnbTrott
authored andcommitted
build: add license-builder GitHub Action
PR-URL: #35712 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
1 parent 7945a2c commit 8f47e69

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/license-builder.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: license update
2+
on:
3+
schedule:
4+
# 00:00:00 every Monday
5+
# https://crontab.guru/#0_0_*_*_1
6+
- cron: "0 0 * * 1"
7+
workflow_dispatch:
8+
9+
jobs:
10+
update_routes:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- run: "./tools/license-builder.sh" # run the license builder tool
15+
- uses: gr2m/create-or-update-pull-request-action@v1.x # create a PR or update the Action's existing PR
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
title: "doc: run license-builder"
20+
body: "License is likely out of date. This is an automatically generated PR by the `license-builder.yml` GitHub Action, which runs `license-builder.sh` and submits a new PR or updates an existing PR."
21+
commit-message: 'doc: run license-builder'
22+
labels: meta

0 commit comments

Comments
 (0)