mirror of
https://github.com/docker/metadata-action.git
synced 2025-06-24 03:37:59 +02:00
fix: handle raw statement for pep440 pre-release
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
@ -557,7 +557,12 @@ class Meta {
|
||||
let latest = false;
|
||||
const pver = pep440.explain(vraw);
|
||||
if (pver.is_prerelease || pver.is_postrelease || pver.is_devrelease) {
|
||||
vraw = this.setValue(pep440.clean(vraw), tag);
|
||||
if (Meta.isRawStatement(tag.attrs['pattern'])) {
|
||||
vraw = this.setValue(vraw, tag);
|
||||
}
|
||||
else {
|
||||
vraw = this.setValue(pep440.clean(vraw), tag);
|
||||
}
|
||||
}
|
||||
else {
|
||||
vraw = this.setValue(handlebars.compile(tag.attrs['pattern'])({
|
||||
|
Reference in New Issue
Block a user