Skip to content

Commit 41ab09a

Browse files
committed
build: add authors.yml
1 parent f9c9c21 commit 41ab09a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/authors.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "authors update"
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
authors_update:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: '0' # this is required to actually get all the authors
12+
- run: "tools/update-authors.js" # run the AUTHORS tool
13+
- uses: gr2m/create-or-update-pull-request-action@v1 # create a PR or update the Action's existing PR
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
with:
17+
title: "doc: update AUTHORS"
18+
body: "If this PR exists, there's presumably new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js` and submits a new PR or updates an existing PR.\n\nPlease note that there might be duplicate entries. If there are, please remove them and add the duplicate emails to .mailmap directly to this PR."
19+
branch: "actions/authors-update" # custom branch *just* for this Action.
20+
commit-message: "doc: update AUTHORS"
21+
labels: meta

0 commit comments

Comments
 (0)