From 4349e4356cb867f04b41dd8d85fccf31e14c4b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCsters?= Date: Tue, 26 Mar 2024 21:24:10 +0100 Subject: [PATCH] fix: added GitHub action support for mode --- README.md | 17 +++++++++-------- action.yaml | 6 ++++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f4f9b0d..fed49cb 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,15 @@ for [Conventional Commits](https://www.conventionalcommits.org/) with support fo ## Inputs -| Input | Required | Default | Description | -|---------------------------|----------|----------|----------------------------------------------------------------------------------------------------------| -| `prefix` | `false` | `v` | The prefix that should be prepended to the version. | -| `suffix` | `false` | `` | The suffix that should appended to the version (e.g. `beta`). | -| `previous-version-suffix` | `false` | `` | The suffix that should be replaced with the value in `suffix` (e.g. `dev`). | -| `bumping-suffix` | `false` | `hotfix` | The suffix to append to the version (or increment if it already exists) if `only-bump-suffix` is `true`. | -| `only-bump-suffix` | `false` | `false` | Bump the `bumping-suffix` instead of the version if changes were detected. | -| `create-tag` | `false` | `true` | Create a git tag for the version and push it if a remote is configured. | +| Input | Required | Default | Description | +| ------------------------- | -------- | ---------- | -------------------------------------------------------------------------------------------------------- | +| `prefix` | `false` | `v` | The prefix that should be prepended to the version. | +| `suffix` | `false` | `` | The suffix that should appended to the version (e.g. `beta`). | +| `previous-version-suffix` | `false` | `` | The suffix that should be replaced with the value in `suffix` (e.g. `dev`). | +| `bumping-suffix` | `false` | `hotfix` | The suffix to append to the version (or increment if it already exists) if `only-bump-suffix` is `true`. | +| `only-bump-suffix` | `false` | `false` | Bump the `bumping-suffix` instead of the version if changes were detected. | +| `create-tag` | `false` | `true` | Create a git tag for the version and push it if a remote is configured. | +| `mode` | `false` | `semantic` | The mode to use for determining the next version. Possible values: `semantic`, `hash-based`. | ## Outputs diff --git a/action.yaml b/action.yaml index 1158ae2..5a25baa 100644 --- a/action.yaml +++ b/action.yaml @@ -26,6 +26,10 @@ inputs: description: "Create a Git Tag for the version and push it if a remote is configured." required: false default: "true" + mode: + description: "The mode to use for determining the next version. Possible values: `semantic`, `hash-based`." + required: false + default: "semantic" outputs: version: description: "The next version, without the prefix" @@ -53,3 +57,5 @@ runs: - ${{ inputs.only-bump-suffix }} - --create-tag - ${{ inputs.create-tag }} + - --mode + - ${{ inputs.mode }}