项目作者: autosuite

项目描述 :
GitHub Action that automatically versions popular configuration management tools.
高级语言: TypeScript
项目地址: git://github.com/autosuite/autoversion.git
创建时间: 2019-11-12T07:07:14Z
项目社区:https://github.com/autosuite/autoversion

开源协议:Apache License 2.0

下载


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:

  1. name: my-workflow
  2. on: [push]
  3. jobs:
  4. autoversion:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@master
  8. - uses: autosuite/autoversion@master
  9. with:
  10. managers: npm, cargo
  11. - uses: autosuite/autocommit@master
  12. - uses: ad-m/github-push-action@master
  13. with:
  14. 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.