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:
Emil Kantis 2023-02-27 22:32:29 +01:00
parent 9e89a29a4a
commit e27fda7711
No known key found for this signature in database
GPG key ID: 5053C7ECBEC9A5E9
17 changed files with 85 additions and 29 deletions

View file

@ -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);