Skip to content

This GitHub Action retrieves information about a specified GitHub account, such as public data, repositories, and other relevant details, and inserts this information into a specified README file.

Notifications You must be signed in to change notification settings

kotorkovsciy/github-account-info-2-readme

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

50 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Account Info to README

Description

This GitHub Action retrieves information about a specified GitHub account, such as public data, repositories, and other relevant details, and inserts this information into a specified README file.

Example Workflows

Example Workflow with Personal GitHub Token

name: Update README with GitHub Account Info

on:
  push:
    branches:
      - main

jobs:
  update-readme:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Insert GitHub Account Info into README
        uses: kotorkovsciy/[email protected]
        with:
          GH_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}  # Your personal GitHub token
          github_username: kotorkovsciy
          target_file: README.md

Example Workflow with Repository Token

name: Update README with GitHub Account Info

on:
  push:
    branches:
      - main

jobs:
  update-readme:
    runs-on: ubuntu-latest
    permissions:
      contents: write  # Grant permission to write to the repository contents
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Insert GitHub Account Info into README
        uses: kotorkovsciy/[email protected]
        with:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # Repository token
          github_username: kotorkovsciy
          target_file: README.md

Tags in readme

<!--START_LAST_REPO-->
Latest Project: Your last repository will appear here.
<!--END_LAST_REPO-->


<!--START_TABLE_REPOS-->
| Name | Homepage | Stars | Last Commit |
|------|----------|-------|-------------|
| Repo1 | https://github.com/user/repo1 | 100 | ![Last Commit](https://img.shields.io/github/last-commit/user/repo1?style=flat&label=last) |
| Repo2 | https://github.com/user/repo2 | 150 | ![Last Commit](https://img.shields.io/github/last-commit/user/repo2?style=flat&label=last) |
<!--END_TABLE_REPOS-->

About

This GitHub Action retrieves information about a specified GitHub account, such as public data, repositories, and other relevant details, and inserts this information into a specified README file.

Topics

Resources

Stars

Watchers

Forks

Languages