Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTierney Cyren <hello@bnb.im>2020-10-19 19:23:15 +0300
committerRich Trott <rtrott@gmail.com>2020-10-22 15:23:58 +0300
commit8f47e697a19995e0d532326f270bd70ed097f29a (patch)
treead998c6b9c1dff91f310fc0cbe907033e5393bd8
parent7945a2cdc34623234037dfaccef56c257da68d13 (diff)
build: add license-builder GitHub Action
PR-URL: https://github.com/nodejs/node/pull/35712 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
-rw-r--r--.github/workflows/license-builder.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/license-builder.yml b/.github/workflows/license-builder.yml
new file mode 100644
index 00000000000..714aeb1c149
--- /dev/null
+++ b/.github/workflows/license-builder.yml
@@ -0,0 +1,22 @@
+name: license update
+on:
+ schedule:
+ # 00:00:00 every Monday
+ # https://crontab.guru/#0_0_*_*_1
+ - cron: "0 0 * * 1"
+ workflow_dispatch:
+
+jobs:
+ update_routes:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - run: "./tools/license-builder.sh" # run the license builder tool
+ - uses: gr2m/create-or-update-pull-request-action@v1.x # create a PR or update the Action's existing PR
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ title: "doc: run license-builder"
+ 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."
+ commit-message: 'doc: run license-builder'
+ labels: meta