@@ -603,7 +603,7 @@ tags: |
603
603
` ` ` yaml
604
604
tags: |
605
605
# minimal
606
- type=match,pattern=\d . \d . \d
606
+ type=match," pattern=\\ d+. \\ d+. \\ d+"
607
607
# define match group
608
608
type=match,pattern=v(.*),group=1
609
609
# use custom value instead of git tag
@@ -614,13 +614,13 @@ Can create a regular expression for matching Git tag with a pattern and
614
614
capturing group. Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push)
615
615
but, you can also use a custom value through `value` attribute.
616
616
617
- | Git tag | Pattern | Group | Output |
618
- |-------------------------|------------------| ---------|------------------------|
619
- | `v1.2.3` | `\d.\d.\d ` | `0` | `1.2.3` |
620
- | `v2.0.8-beta.67` | `v(.*)` | `1` | `2.0.8-beta.67` |
621
- | `v2.0.8-beta.67` | `v(\d.\d )` | `1` | `2.0` |
622
- | `20200110-RC2` | `\d+` | `0` | `20200110` |
623
- | `p1/v1.2.3` | `p1/v(\d.\d.\d )` | `1` | `1.2.3` |
617
+ | Git tag | Pattern | Group | Output |
618
+ |-------------------------|----------------------------- |---------| ---------------|
619
+ | `v1.2.3` | `\\d+\\.\\d+\\.\\d+ ` | `0` | `1.2.3` |
620
+ | `v2.0.8-beta.67` | `v(.*)` | `1` | `2.0.8-beta.67` |
621
+ | `v2.0.8-beta.67` | `v(\\d+\\.\\d+\\. )` | `1` | `2.0` |
622
+ | `20200110-RC2` | `\d+? ` | `0` | `20200110` |
623
+ | `p1/v1.2.3` | `p1\ /v(\\d+\\.\\d+\\.\\d+ )` | `1` | `1.2.3` |
624
624
625
625
Extended attributes and default values :
626
626
@@ -809,7 +809,7 @@ tags: |
809
809
810
810
# ### `{{branch}}`
811
811
812
- Returns the branch name that triggered the workflow run. Will be empty if not
812
+ Returns the branch name that triggered the workflow run. Will be empty if not
813
813
a branch reference :
814
814
815
815
| Event | Ref | Output |
@@ -847,11 +847,11 @@ workflow run. Will be empty for a branch reference:
847
847
| `push` | `refs/heads/my/branch` | |
848
848
| `push tag`* | `refs/tags/v1.2.3` | `master` |
849
849
850
- > *`base_ref` is available in the push payload but doesn't always seem to
850
+ > *`base_ref` is available in the push payload but doesn't always seem to
851
851
> return the expected branch when the push tag event occurs. It's also
852
852
> [not documented in GitHub docs](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push).
853
853
> We keep it for backward compatibility, but it's **not recommended relying on it**.
854
- > More context in [#192](https://github.com/docker/metadata-action/pull/192#discussion_r854673012).
854
+ > More context in [#192](https://github.com/docker/metadata-action/pull/192#discussion_r854673012).
855
855
856
856
# ### `{{is_default_branch}}`
857
857
0 commit comments