File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,19 @@ SEMVER validator
1111## Example usage
1212
1313``` yaml
14- uses : actions/semver-validation-action@0.0.5
14+ uses : actions/semver-validation-action@0.0.6
1515with :
1616 version : ${{ github.event.release.tag_name }}
1717` ` `
1818
1919` ` ` yaml
20- uses : actions/semver-validation-action@0.0.5
20+ uses : actions/semver-validation-action@0.0.6
2121with :
2222 version : ' v0.7.9'
2323` ` `
2424
2525` ` ` yaml
26- uses : actions/semver-validation-action@0.0.5
26+ uses : actions/semver-validation-action@0.0.6
2727with :
2828 version : ' 0.7.9-beta.1'
2929` ` `
Original file line number Diff line number Diff line change 66 const version = core . getInput ( 'version' ) ;
77 console . log ( `Checking version: ${ version } !` ) ;
88
9- var re = new RegExp ( "(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(([a-z-][\da-z-]+|[\da-z-]+[a-z-][\da-z-]*|0|[1-9]\d*)(\.([a-z-][\da-z-]+|[\da-z-]+[a-z-][\da-z-]*|0|[1-9]\d*))*))?(\\+([\da-z-]+(\.[\da-z-]+)*))?$" ) ;
9+ var re = new RegExp ( "(0|[1-9]\d*)+ \.(0|[1-9]\d*)+ \.(0|[1-9]\d*)+ (-(([a-z-][\da-z-]+|[\da-z-]+[a-z-][\da-z-]*|0|[1-9]\d*)(\.([a-z-][\da-z-]+|[\da-z-]+[a-z-][\da-z-]*|0|[1-9]\d*))*))?(\\+([\da-z-]+(\.[\da-z-]+)*))?$" ) ;
1010 if ( re . exec ( version ) == null ) {
1111 core . setFailed ( "Invalid version" ) ;
1212 }
You can’t perform that action at this time.
0 commit comments