2
0
Fork 0
mirror of https://code.forgejo.org/docker/metadata-action.git synced 2025-08-05 22:00:53 +00:00

Coerces Git tag to semver (#3)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2020-10-26 01:39:21 +01:00 committed by GitHub
parent 8ec02f11ef
commit 5bc3bf6dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 785 additions and 443 deletions

View file

@ -1,6 +1,6 @@
import {getInputs, Inputs} from './context';
import * as github from './github';
import {Meta} from './meta';
import {Meta, Version} from './meta';
import * as core from '@actions/core';
import {Context} from '@actions/github/lib/context';
import {ReposGetResponseData} from '@octokit/types';
@ -27,11 +27,11 @@ async function run() {
const meta: Meta = new Meta(inputs, context, repo);
const version: string | undefined = meta.version();
const version: Version = meta.version();
core.startGroup(`Docker image version`);
core.info(`${version}`);
core.info(version.version || '');
core.endGroup();
core.setOutput('version', version || '');
core.setOutput('version', version.version || '');
const tags: Array<string> = meta.tags();
core.startGroup(`Docker tags`);