-
Notifications
You must be signed in to change notification settings - Fork 5
75 lines (56 loc) · 2.15 KB
/
test-action.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: test-action
on:
pull_request: []
jobs:
test-action:
name: Generate Contributor Files
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Generate Updated Zenodo and Contributors
# Important! Update to release https://github.com/con/tributors
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Single text list (space separated) of parsers, or all (default)
parsers: zenodo allcontrib
# One or more resources (and optional arguments) to update .tributors
update_lookup: mailmap
# This file will be used for running update-lookup
mailmap_file: "tests/.mailmap"
# Skip one or more usernames (space separated)
skip_users: user1 user2
# 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
# ".zenodo.json to update. If does not exist, must define zenodo_doi"
zenodo_file: .zenodo.json
# Zenodo DOI needed for init. Leave unset to skip init.
zenodo_doi: 10.5281/zenodo.1012531
# Contribution type, which defaults to "code" if not set.
allcontrib_type: code
# All contributors filename (defaults to .all-contributorsrc)
allcontrib_file: .all-contributorsrc
# skip running all-contributors generate
allcontrib_skip_generate: false
- name: Upload zenodo data as artifact
uses: actions/upload-artifact@v3
# Path is relative to GITHUB_WORKSPACE
with:
name: zenodo
path: .zenodo.json
- name: Upload allcontributors data as artifact
uses: actions/upload-artifact@v3
with:
name: allcontrib
path: .all-contributorsrc
- name: Upload README as artifact
uses: actions/upload-artifact@v3
with:
name: readme
path: README.md