GitHub Badges action
📄 :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:
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, findinputandoutputfiles from a specific branch. Default:main(the repository default branch).section-name(optional). Optionally set the section name for replacement in theoutputfile. 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
