Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.
/ autobadge Public archive
generated from teaminkling/base

GitHub Action that manages some funky badges in your README.md file.

License

Notifications You must be signed in to change notification settings

autosuite/autobadge

Repository files navigation

Autobadge

Autobadge has been discontinued. This repository has been archived.

Autobadge Stable Release Autobadge Development Release Maintainability Test Coverage

Introduction

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:

Autobadge Stable Release Autobadge Development Release

Usage

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.

Configuration

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.

Documentation

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.

About

GitHub Action that manages some funky badges in your README.md file.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published