Autobadge has been discontinued. This repository has been archived.
This is a GitHub Action that automatically manages two version badges in your README.md
:
- Current stable version.
- Current development version.
Here's an example of the badges in action:
Though the example below uses
master
, you should use the explicit version suitable for your project.
Note that you will need to have an Action that performs a pre-commit (stage, commit) and push, as seen below:
name: my-workflow
on: [push]
jobs:
autocommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: autosuite/autobadge@master
- uses: autosuite/autocommit@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Next, add the following lines to anywhere in your README.md
file (see the source of this file as an example):
[stable-release]: ...
[development-release]: ...
As well as these lines underneath the first header of the file:
![Autobadge Stable Release][stable-release]
![Autobadge Development Release][development-release]
Obviously, you should make sure that your version tags exist and follow either 0.1.12
format or v0.1.12
format.
Pre-release versioning is supported as well as well as build information, e.g.: v0.1.12-rc3+commit-58
.
You can see all configuration in the action.yml file.
There is no special configuration for this Action. This may be subject to change as the need arises.
If you would like to contribute to this project, please read our contributors documentation and our code of conduct.
The license we use for this project is defined in the license file.