A GitHub Action that automatically updates your README file with the latest activity from your GitHub account. Customize the displayed events, set a limit on the number of events, and ignore specific event types. Ideal for keeping your personal README file current with recent contributions and changes.
- Customizable Event Limits
- Event Filtering
- Flexibility with Inputs
- 🎉 Created a new repository DevOpsJira2024/PublicTest
- ➕ Created a new branch
mainin DevOpsJira2024/PublicTest - 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- ➕ Created a new tag
v1in a private repo - 🚀 Published release in a private repo
- 📝 Committed to liehcheng/activity-log
- 📝 Committed to liehcheng/activity-log
- 📝 Committed to liehcheng/activity-log
- 📝 Committed to liehcheng/activity-log
- 📝 Committed to liehcheng/activity-log
- 📝 Committed to liehcheng/activity-log
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to liehcheng/activity-log
- 📝 Committed to liehcheng/activity-log
- 🍴 Forked TheDanniCraft/activity-log
- 📝 Committed to a private repo
- ➕ Created a new branch
tttttttttttttin a private repo - 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 🗑️ Deleted a branch
b1in a private repo - 📝 Committed to a private repo
- 🔀 Merged a PR in a private repo
- 📥 Opened a PR in a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- ➕ Created a new branch
b1in a private repo - 🗑️ Deleted a branch
liehcheng-patch-1in a private repo - 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- ➕ Created a new branch
liehcheng-patch-1in a private repo - 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
- 📝 Committed to a private repo
Include the following placeholders in your README.md where you want the activity log to appear:
<!--START_SECTION:activity-->
<!--END_SECTION:activity-->For a reference example, you can view this sample README.md.
Quick Setup (Recommended)
- To create a personal access token with the necessary permissions, click this link to create a new token. This link pre-fills the token description and scopes for your convenience.
- On the token creation page, review the pre-filled data and set the expiration date to "Never".
- Click "Generate token" and copy the token (be sure to save it as you won’t be able to see it again).
Manual Setup
- Go to your GitHub Personal Access Tokens settings.
- Click on "Generate new token".
- Provide a descriptive name for the token, such as
Github Activity Log (TheDanniCraft/activity-log). - Select the
reposcope (recommended if you want private repo activity to show up). - Set the expiration date to "Never".
- Click "Generate token" and copy the token (be sure to save it as you won’t be able to see it again).
- Navigate to your GitHub repository.
- Go to "Settings" > "Secrets and variables" > "Actions".
- Click "New repository secret".
- Name the secret (e.g.,
TOKEN). - Paste the personal access token into the value field.
- Click "Add secret".
Create a new file in your repository under .github/workflows/, for example, activity-log.yml. Add the following content to this file:
# .github/workflows/update-activity.yml:
name: Update GitHub Activity
on:
schedule:
- cron: "*/30 * * * *" # Runs every 30 minutes
workflow_dispatch: # Allows manual triggering
jobs:
update-activity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update GitHub Activity
uses: TheDanniCraft/activity-log@v1
with:
GITHUB_USERNAME: "thedannicraft"
GITHUB_TOKEN: ${{ secrets.TOKEN }} # Ensure this matches the secret name in repository settingsTake a look at all possible Inputs for customization
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:
CreateEventPushEventIssuesEventopenededitedclosedreopenedassignedunassignedlabeledunlabeled
PullRequestEventopenededitedclosedmergedreopenedassignedunassignedreview_requestedreview_request_removedlabeledunlabeledsynchronize
ReleaseEventForkEventCommitCommentEventIssueCommentEventPullRequestReviewEventPullRequestReviewCommentEventRepositoryEventWatchEventStarEventPublicEventGollumEvent
You can find an example here.
| Input | Description | Required | Default | Possible Options |
|---|---|---|---|---|
GITHUB_USERNAME |
Your GitHub username. | ✅ | - |
A valid GitHub username |
GITHUB_TOKEN |
Your GitHub token. | ✅ | - |
A valid GitHub access token (must belong to the specified GitHub username) |
EVENT_LIMIT |
The maximum number of events to display. | ❌ | 10 |
Any positive integer |
OUTPUT_STYLE |
Specifies the format in which your output should be rendered. Must be one of: - MARKDOWN: Output in Markdown format - HTML: Output in HTML format |
❌ | MARKDOWN |
MARKDOWN or HTML |
IGNORE_EVENTS |
The events to ignore, specified as a JSON array. | ❌ | [] |
JSON array of event types (e.g., ["PushEvent", "PullRequestEvent"]) |
README_PATH |
The path to your README file. | ❌ | README.md |
Any valid file path |
COMMIT_MESSAGE |
Your commit message. | ❌ | - |
Any valid commit message |