mirror of
https://github.com/nodejs/node.git
synced 2026-12-06 08:08:57 -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>
29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
name: "authors 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@v2
|
|
with:
|
|
fetch-depth: '0' # This is required to actually get all the authors
|
|
persist-credentials: false
|
|
- run: "tools/update-authors.js" # Run the AUTHORS 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: "Here are some new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js`."
|
|
branch: "actions/authors-update" # Custom branch *just* for this Action.
|
|
commit-message: "meta: update AUTHORS"
|
|
labels: meta
|
|
title: "meta: update AUTHORS"
|