Template repository for gh-lang-stats.
- Use this template.
- Generate a personal access token here.
- Add a your personal access token as a repository secret named
TOKEN
here (link only works from README). - Pick a template from the source repo and copy it to the repository.
- Rename the file to
template.svg
(or specify withINPUT_FILE
).
- Cron: Uncomment lines 5 and 6 in the workflow.
- Ignore: Create
ignore.yml
file:
# Repository name to match
- username/repo1
# Directory paths to match
dir:
- ignored_dir1
- path/to/ignored_dir2
# File names to match
file:
- file.cpp
- another_file.h
# Exact file paths to match
exact:
- src/main.c
- lib/thirdpartyheader.h
# Another repository
- org/repo2
dir:
# etc
Two ways to run it
- Run it manually from the Actions tab.
- Use cron to run the job automatically (step 6).
- The default setting is to run it at 00:00 once a day.
The workflow will generate a file generated.svg
(or specified by OUTPUT_FILE
).