mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-10-17 16:31:59 +00:00
Reproduce issue #546: tags input breaks when using # in Git tag or regex
This commit is contained in:
parent
c1e51972af
commit
90b68cf47e
1 changed files with 38 additions and 0 deletions
|
@ -91,6 +91,44 @@ describe('getInputs', () => {
|
|||
tags: [],
|
||||
} as Inputs
|
||||
],
|
||||
[
|
||||
3,
|
||||
new Map<string, string>([
|
||||
['tags', 'type=match,pattern=mkdocs-(.*),group=1'],
|
||||
]),
|
||||
{
|
||||
context: ContextSource.workflow,
|
||||
bakeTarget: 'docker-metadata-action',
|
||||
flavor: [],
|
||||
githubToken: '',
|
||||
images: [],
|
||||
labels: [],
|
||||
annotations: [],
|
||||
sepLabels: '\n',
|
||||
sepTags: '\n',
|
||||
sepAnnotations: '\n',
|
||||
tags: ['type=match,pattern=mkdocs-(.*),group=1'],
|
||||
} as Inputs
|
||||
],
|
||||
[
|
||||
4,
|
||||
new Map<string, string>([
|
||||
['tags', 'type=match,pattern=mkdocs#(.*),group=1'],
|
||||
]),
|
||||
{
|
||||
context: ContextSource.workflow,
|
||||
bakeTarget: 'docker-metadata-action',
|
||||
flavor: [],
|
||||
githubToken: '',
|
||||
images: [],
|
||||
labels: [],
|
||||
annotations: [],
|
||||
sepLabels: '\n',
|
||||
sepTags: '\n',
|
||||
sepAnnotations: '\n',
|
||||
tags: ['type=match,pattern=mkdocs#(.*),group=1'],
|
||||
} as Inputs
|
||||
],
|
||||
])(
|
||||
'[%d] given %p as inputs, returns %p',
|
||||
async (num: number, inputs: Map<string, string>, expected: Inputs) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue