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:
parent
8ec02f11ef
commit
5bc3bf6dce
13 changed files with 785 additions and 443 deletions
|
@ -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`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue