File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ export class Meta {
169
169
if ( ! tmatch ) {
170
170
core . warning ( `${ tag . attrs [ 'match' ] } does not match ${ vraw } .` ) ;
171
171
} else {
172
- vraw = this . setValue ( tmatch [ 1 ] , tag ) ;
172
+ vraw = tmatch [ 1 ] ;
173
173
}
174
174
}
175
175
@@ -207,8 +207,20 @@ export class Meta {
207
207
if ( tag . attrs [ 'value' ] . length > 0 ) {
208
208
vraw = this . setGlobalExp ( tag . attrs [ 'value' ] ) ;
209
209
} else {
210
- vraw = this . context . ref . replace ( / ^ r e f s \/ t a g s \/ / g, '' ) . replace ( / \/ / g, '-' ) ;
210
+ vraw = this . context . ref . replace ( / ^ r e f s \/ t a g s \/ / g, '' ) ;
211
+ }
212
+
213
+ if ( tag . attrs [ 'match' ] . length > 0 ) {
214
+ const tmatch = vraw . match ( tag . attrs [ 'match' ] ) ;
215
+ if ( ! tmatch ) {
216
+ core . warning ( `${ tag . attrs [ 'match' ] } does not match ${ vraw } .` ) ;
217
+ } else {
218
+ vraw = tmatch [ 1 ] ;
219
+ }
211
220
}
221
+
222
+ vraw = vraw . replace ( / \/ / g, '-' ) ;
223
+
212
224
if ( ! pep440 . valid ( vraw ) ) {
213
225
core . warning ( `${ vraw } does not conform to PEP 440. More info: https://www.python.org/dev/peps/pep-0440` ) ;
214
226
return version ;
You can’t perform that action at this time.
0 commit comments