-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.74 KB
/
authors.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: "AUTHORS"
on:
push:
branches: [ master ]
permissions: write-all
jobs:
authors:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: AUTHORS
shell: bash
run: |
bash --noprofile --norc -e -o pipefail docs/tools/git-config.sh
git fetch origin +refs/tags/artifacts:refs/tags/artifacts --no-tags
git fetch origin +refs/tags/latest:refs/tags/latest --no-tags
git log --format='%aN <%aE>%n%cN <%cE>' --all | sort -u > AUTHORS.txt
sort -muo .mailmap -- .mailmap AUTHORS.txt
- id: cpr
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update AUTHORS
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
committer: GitHub <[email protected]>
title: Credit new contributors
body: |
Credit our new contributors :tada:
labels: automerge
branch: actions/authors
base: master
- name: get repository name
if: ${{ steps.cpr.outputs.pull-request-number }}
shell: bash
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: automerge
if: ${{ steps.cpr.outputs.pull-request-number }}
uses: actions/[email protected]
with:
script: |
github.rest.pulls.merge({
owner: '${{ github.repository_owner }}',
repo: '${{ env.REPOSITORY_NAME }}',
pull_number: '${{ steps.cpr.outputs.pull-request-number }}',
sha: '${{ steps.cpr.outputs.pull-request-head-sha }}',
merge_method: 'merge'
})