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

Handle semver tags (#14)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2020-11-17 23:31:03 +01:00 committed by GitHub
parent 009f84cd69
commit e8ce48988f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 2573 additions and 84 deletions

View file

@ -5,6 +5,7 @@ export interface Inputs {
tagSha: boolean;
tagEdge: boolean;
tagEdgeBranch: string;
tagSemver: string[];
tagMatch: string;
tagMatchGroup: number;
tagMatchLatest: boolean;
@ -20,6 +21,7 @@ export function getInputs(): Inputs {
tagSha: /true/i.test(core.getInput('tag-sha') || 'false'),
tagEdge: /true/i.test(core.getInput('tag-edge') || 'false'),
tagEdgeBranch: core.getInput('tag-edge-branch'),
tagSemver: getInputList('tag-semver'),
tagMatch: core.getInput('tag-match'),
tagMatchGroup: Number(core.getInput('tag-match-group')) || 0,
tagMatchLatest: /true/i.test(core.getInput('tag-match-latest') || 'true'),