Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muesli/readme-scribe
A GitHub Action that automatically generates & updates markdown content (like your README.md)
https://github.com/muesli/readme-scribe
hacktoberfest
Last synced: 13 days ago
JSON representation
A GitHub Action that automatically generates & updates markdown content (like your README.md)
- Host: GitHub
- URL: https://github.com/muesli/readme-scribe
- Owner: muesli
- License: mit
- Created: 2020-07-21T02:50:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T14:58:31.000Z (over 3 years ago)
- Last Synced: 2024-10-19T23:13:06.479Z (15 days ago)
- Topics: hacktoberfest
- Size: 533 KB
- Stars: 500
- Watchers: 5
- Forks: 30
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- project-awesome - muesli/readme-scribe - A GitHub Action that automatically generates & updates markdown content (like your README.md) (Others)
- jimsghstars - muesli/readme-scribe - A GitHub Action that automatically generates & updates markdown content (like your README.md) (Others)
README
# readme-scribe
A GitHub Action that automatically generates & updates markdown content (like your README.md)
## Instructions
1. Create a [markscribe](https://github.com/muesli/markscribe) template and
place it anywhere in a repository that you automatically want to update. In this
guide we will use `templates/README.md.tpl`.You can find an example template that I use to automatically update my GitHub
profile here: https://github.com/muesli/markscribe/blob/master/templates/github-profile.tpl2. In order to access some of GitHub's API, you need to provide a valid GitHub
token as a secret called `PERSONAL_GITHUB_TOKEN`. You can create a new token by
going to your profile settings:`Developer settings` > `Personal access tokens` > `Generate new token`
Depending on your template you will need access to different API scopes. If you
want to support the full set of features, tick the checkboxes next to these
scopes: `read:user`, `repo:status`, `public_repo`, `read:org`. Check out the
[markscribe](https://github.com/muesli/markscribe) documentation for a detailed
list of required scopes for each individual template function.Now create a new secret in your repository's `Settings` and enter that token.
3. Create a new GitHub workflow in your repository: `.github/workflows/readme-scribe.yml`
```yml
name: Update READMEon:
push:
schedule:
- cron: "0 */1 * * *"jobs:
markscribe:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@master- uses: muesli/readme-scribe@master
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
with:
template: "templates/README.md.tpl"
writeTo: "README.md"- uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: Update generated README
branch: main
commit_user_name: readme-scribe 🤖
commit_user_email: [email protected]
commit_author: readme-scribe 🤖
```Careful: if you use `master` instead of `main` as the default branch, you will
need to update the above config for `git-auto-commit-action` accordingly.This action will be triggered once per hour, parses `templates/README.md.tpl`
and generates a new `README.md` for you, and eventually pushes the changes to
the `master` branch. Make sure to adjust the input values `template` and
`writeTo` to suit your needs.## Example output
![readme-scribe example output](https://github.com/muesli/readme-scribe/raw/master/assets/template_example.png)