-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (43 loc) · 1.49 KB
/
update-contributors.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
53
name: allcontributors-auto-detect
on:
schedule:
# Run nightly 1am
- cron: 0 1 * * *
# You can also have it check for changes on each push to master
push:
branches:
- main
jobs:
Update:
name: Generate
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Tributors Update
# Important! Update to release https://github.com/con/tributors
uses: con/tributors@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Single text list (space separated) of parsers, leave unset to auto-detect
parsers: unset
# INFO, DEBUG, ERROR, WARNING, etc.
log_level: DEBUG
# If files already exist and an init is done, force overwrite
force: true
# the minimum number of contributions required to add a user
threshold: 1
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
commit-message: update tributors
base: main
delete-branch: true
title: '[BOT] update tributors'
body: 'done via this [GitHub Action](https://github.com/cpp-lln-lab/CPP_ROI/blob/main/.github/workflows/update-contributors.yml)'
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"