Skip to content
calendar

GitHub Action

Readme last commit

v1.0.0 Latest version

Readme last commit

calendar

Readme last commit

Update last commit in github profile readme

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Readme last commit

uses: estarossa0/readme-last-commit@v1.0.0

Learn more about this action in estarossa0/readme-last-commit

Choose a version

Readme latest commit

This action update a section of your README.md with a picture containing details about the latest commit you've made.

Example:

Instruction 📖

1. Add to your README.md file two lines that indicate where to put the commit picture:

<!-- LATESTCOMMIT:START -->
<!-- LATESTCOMMIT:END -->
> (Anything between those two lines will be deleted and replaced with the commit picture)

2. Create a workflow file

In your repository create the following file: .github/workflows/last-commit.yml

name: Latest commit message made by user
on:
schedule:
# Runs every hour
- cron: '0 * * * *'

workflow_dispatch:

jobs:

update-readme-with-last-commit:

name: Update this repo's README with latest commit made

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v2

- uses: estarossa0/readme-last-commit@master

The action above runs every hours, you can change it as you like by changing - cron using cron syntax.

💡 The action only check for your public commits, no private commits will be displayed.


_Inspired by jamesgeorge007/github-activity-readme
_motivated by codeSTACKr youtube video about GitHub readme