Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A GitHub Action that automatically generates & updates markdown content (like your README.md)

License

NotificationsYou must be signed in to change notification settings

muesli/readme-scribe

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A GitHub Action that automatically generates & updates markdown content (like your README.md)

Instructions

  1. Create amarkscribe template andplace it anywhere in a repository that you automatically want to update. In thisguide we will usetemplates/README.md.tpl.

You can find an example template that I use to automatically update my GitHubprofile here:https://github.com/muesli/markscribe/blob/master/templates/github-profile.tpl

  1. In order to access some of GitHub's API, you need to provide a valid GitHubtoken as a secret calledPERSONAL_GITHUB_TOKEN. You can create a new token bygoing 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 youwant to support the full set of features, tick the checkboxes next to thesescopes:read:user,repo:status,public_repo,read:org. Check out themarkscribe documentation for a detailedlist of required scopes for each individual template function.

Now create a new secret in your repository'sSettings and enter that token.

  1. Create a new GitHub workflow in your repository:.github/workflows/readme-scribe.yml
name:Update READMEon:push:schedule:    -cron:"0 */1 * * *"jobs:markscribe:runs-on:ubuntu-lateststeps:      -uses:actions/checkout@master      -uses:muesli/readme-scribe@masterenv:GITHUB_TOKEN:${{ secrets.PERSONAL_GITHUB_TOKEN }}with:template:"templates/README.md.tpl"writeTo:"README.md"      -uses:stefanzweifel/git-auto-commit-action@v4env:GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}with:commit_message:Update generated READMEbranch:maincommit_user_name:readme-scribe 🤖commit_user_email:actions@github.comcommit_author:readme-scribe 🤖 <actions@github.com>

Careful: if you usemaster instead ofmain as the default branch, you willneed to update the above config forgit-auto-commit-action accordingly.

This action will be triggered once per hour, parsestemplates/README.md.tpland generates a newREADME.md for you, and eventually pushes the changes tothemaster branch. Make sure to adjust the input valuestemplate andwriteTo to suit your needs.

Example output

readme-scribe example output

About

A GitHub Action that automatically generates & updates markdown content (like your README.md)

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp