Various little enhancements while dealing with interactive ORCID entry + add final empty line in pretty json dump #95
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |