Skip to content

guibranco/github-badges-action

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

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

GitHub Badges action

GitHub repo GitHub code size in bytes GitHub last commit GitHub license

GitHub Super-Linter CI Check dist/ CodeQL wakatime Coverage

πŸ“„ :octocat: GitHub Action to update readme with badges (using ShieldsIo and SimpleIcons for icons).

Set skills with categories in a .json file in your repository, and then run this action to create a Shields.io badge with SimpleIcons labels.

Input: { "slug": "github" }

Output: GitHub

Usage

  • input (optional). The source file for the skills. Default: .github/automations/badges.json.
  • output (optional). The destination file for the replacement. Default: README.md.
  • create-pr (optional). Optionally creates a pull request instead of direct commit and push. Default: false.
  • branch (optional). Optionally, find input and output files from a specific branch. Default: main (the repository default branch).
  • section-name (optional). Optionally set the section name for replacement in the output file. Default: skills-badges. This is useful when multiple sections are in the same file for different results.

Outputs

None.

Example

name: 'Update skills badges'

on:
  schedule:
    - cron: '0 0 1 * *' # runs every first day of each month, at 00h00.
  workflow_dispatch: # runs via workflow dispatch (manually).

  jobs:
    update-badges:
      runs-on: ubuntu-latest
      permissions:
        contents: write
        pull-requests: write

      steps:
        - uses: actions/checkout@v4

        - name: Run the action
          uses: guibranco/github-badges-action@latest

Sample result

sample result