GitHub Action
Template Repository Usage Action
v1.2.0
Latest version
A GitHub action to automatically update a template repository README with a list of repos that used it in an organisation.
- Specify somewhere in a README that you want the list, and add:
<!-- EXAMPLE_TEMPLATE_LIST_START -->
<!-- EXAMPLE_TEMPLATE_LIST_END -->
Removing the EXAMPLE_
prefix, done here so the example below doesn't match the text above.
- Add the GitHub action, and set it to run nightly
Option | Required | Description |
---|---|---|
token |
✅ | A personal access token that can access your organisation repos, see here for more. |
org |
❌ | A way to override the organisation the action is checking for usage of the template, otherwise it uses the org that owns the repo where the action is running. |
repo |
❌ | A way to override the repo the action is checking for usage of in the given org, otherwise it uses the repo where the action is running. |
readme_path |
❌ | The path to the README to update. |
heading_level |
❌ | The heading level for the usage section in the README file. (default: 1) |
author_name |
❌ | The name of the user that will be displayed as the author of the commit. |
author_email |
❌ | The email of the user that will be displayed as the author of the commit. |
cwd |
❌ | The directory where your repository is located. You should use actions/checkout first to set it up. |
Install the dependencies
$ npm install
Build the typescript and package it for distribution
$ npm run build && npm run package
Run the tests ✔️
$ npm test
PASS ./index.test.js
✓ throws invalid number (3ms)
✓ wait 500 ms (504ms)
✓ test runs (95ms)
...
Actions are run from GitHub repos so we will checkin the packed dist folder.
Then run ncc and push the results:
$ npm run package
$ git add dist
$ git commit -a -m "prod dependencies"
$ git push origin releases/v1
The action is now published! 🚀
See the versioning documentation
You can now validate the action by referencing ./
in a workflow in your repo (see test.yml)
uses: ./
with:
milliseconds: 1000
See the actions tab for runs of this action! 🚀
After testing you can create a v1 tag to reference the stable and latest V1 action
- maael/vibe-check
- maael/gladius-codex
- maael/morning-greeting
- maael/what-now
- maael/factory
- maael/info
- maael/cached-proxy
- maael/twitch-guild-wars-2-build-viewer
- maael/discord-slash-commands
- maael/meow-are-you
- maael/where-am-i
- maael/dessa-site
- maael/tweetem
- maael/observatory
- maael/gh-short-url
- maael/who-was
- maael/tilted
- maael/bopsy
- maael/iono
- Bodmass/guildy
- maael/hydratwitch
- maael/betrayal-game