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

GitHub Action that automatically versions popular configuration management tools.

License

Notifications You must be signed in to change notification settings

autosuite/autoversion

Repository files navigation

Autoversion

Autobadge Stable Release Autobadge Development Release Maintainability Test Coverage

Introduction

This is a Simple Action that increments the version to the most recent tag found when called. This supports:

  • Rust/Cargo (cargo).
  • Node/NPM (npm).

Feel free to open a pull request if you would like to support additional frameworks!

Usage

Add this to your main.yml file (or whatever your workflow is called).

Note that you will need to have an action that performs a pre-commit (stage, commit) and push:

name: my-workflow

on: [push]

jobs:
  autoversion:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - uses: autosuite/autoversion@master
        with:
          managers: npm, cargo
      - uses: autosuite/autocommit@master
      - uses: ad-m/github-push-action@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

Configuration

You can see all configuration in the action.yml file.

Variable Value Example Default Required?
managers Comma-separated enum (see above.) npm, cargo npm Yes.

Caveats

There is obviously only one set of version tags in any git repository, meaning you cannot do something like have a frontend and backend of an application in the same repository while they have different versions. You can, however, force them to always keep the same version, even if they do not change between different tags.

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 automatically versions popular configuration management tools.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published