mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2026-04-15 19:39:53 +00:00
Adding is_tagged to outputs
Sets a flag when the current commit that the action is being run on has a tag matching the version format
This commit is contained in:
parent
9e89a29a4a
commit
e27fda7711
17 changed files with 85 additions and 29 deletions
|
|
@ -6,7 +6,7 @@ import * as core from '@actions/core';
|
|||
import { VersionType } from './providers/VersionType';
|
||||
|
||||
function setOutput(versionResult: VersionResult) {
|
||||
const { major, minor, patch, increment, versionType, formattedVersion, versionTag, changed, authors, currentCommit, previousCommit, previousVersion } = versionResult;
|
||||
const { major, minor, patch, increment, versionType, formattedVersion, versionTag, changed, isTagged, authors, currentCommit, previousCommit, previousVersion } = versionResult;
|
||||
|
||||
const repository = process.env.GITHUB_REPOSITORY;
|
||||
|
||||
|
|
@ -26,6 +26,7 @@ function setOutput(versionResult: VersionResult) {
|
|||
core.setOutput("increment", increment.toString());
|
||||
core.setOutput("version_type", VersionType[versionType].toLowerCase());
|
||||
core.setOutput("changed", changed.toString());
|
||||
core.setOutput("is_tagged", isTagged.toString());
|
||||
core.setOutput("version_tag", versionTag);
|
||||
core.setOutput("authors", authors);
|
||||
core.setOutput("previous_commit", previousCommit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue