mirror of
https://github.com/nodejs/node.git
synced 2026-12-06 08:18:52 -05:00
Out of extra caution, instruct `actions/checkout` to not save GitHub authentication credentials in the git config for use by future steps. PR-URL: https://github.com/nodejs/node/pull/40972 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
28 lines
1.0 KiB
YAML
28 lines
1.0 KiB
YAML
name: license update
|
|
on:
|
|
schedule:
|
|
# 00:00:00 every Monday
|
|
# https://crontab.guru/#0_0_*_*_1
|
|
- cron: "0 0 * * 1"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update_license:
|
|
if: github.repository == 'nodejs/node'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
persist-credentials: false
|
|
- 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:
|
|
author: Node.js GitHub Bot <github-bot@iojs.org>
|
|
branch: actions/license-builder
|
|
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
|