Skip to content

Repository files navigation

GitHub Activity in Readme

Updates README.md with the recent GitHub activity of a user.

profile-repo


Instructions

  • Add the comment <!--START_SECTION:activity--> (entry point) within README.md. You can find an example here.

  • It's the time to create a workflow file.

.github/workflows/update-readme.yml

name: Update READMEon:
schedule:
- cron: '*/30 * * * *'workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latestname: Update this repo's README with recent activitysteps:
- uses: actions/checkout@v2
- uses: jamesgeorge007/github-activity-readme@masterenv:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

The above job runs every half an hour, you can change it as you wish based on the cron syntax.

Please note that only those public events that belong to the following list show up:-

  • IssueEvent
  • IssueCommentEvent
  • PullRequestEvent

You can find an example here.

Override defaults

Use the following input params to customize it for your use case:-

Input ParamDefault ValueDescription
COMMIT_MSG⚡ Update README with the recent activityCommit message used while committing to the repo
MAX_LINES5The maximum number of lines populated in your readme file
TARGET_FILEREADME.mdThe file to insert recent activity into
name: Update READMEon:
schedule:
- cron: '*/30 * * * *'workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latestname: Update this repo's README with recent activitysteps:
- uses: actions/checkout@v2
- uses: jamesgeorge007/github-activity-readme@masterenv:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}with:
COMMIT_MSG: 'Specify a custom commit message'MAX_LINES: 10

Inspired by JasonEtco/activity-box

About

Updates README with the recent GitHub activity of a user

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages