Allow to disable edge branch tagging (#2)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2020-10-25 15:32:14 +01:00
committed by GitHub
parent a0b5755726
commit cb039680df
6 changed files with 50 additions and 16 deletions

View File

@ -3,7 +3,8 @@ import * as core from '@actions/core';
export interface Inputs {
images: string[];
tagSha: boolean;
tagEdge: string;
tagEdge: boolean;
tagEdgeBranch: string;
tagSchedule: string;
sepTags: string;
sepLabels: string;
@ -13,8 +14,9 @@ export interface Inputs {
export function getInputs(): Inputs {
return {
images: getInputList('images'),
tagSha: /true/i.test(core.getInput('tag-sha')),
tagEdge: core.getInput('tag-edge'),
tagSha: /true/i.test(core.getInput('tag-sha') || 'false'),
tagEdge: /true/i.test(core.getInput('tag-edge') || 'false'),
tagEdgeBranch: core.getInput('tag-edge-branch'),
tagSchedule: core.getInput('tag-schedule') || 'nightly',
sepTags: core.getInput('sep-tags') || `\n`,
sepLabels: core.getInput('sep-labels') || `\n`,