Skip to content

Commit

Permalink
update stable RC to
Browse files Browse the repository at this point in the history
  • Loading branch information
noud-github committed May 20, 2022
1 parent 164f9fb commit ac90de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/grunt/custom-tasks/sync-readme-stable-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ module.exports = function( grunt ) {
);
}

const currentVersion = getVersion( targetFile, /(\n?)(Stable tag:\W+)(\d+(\.\d+){0,3})(\n)/, 3 );
const currentVersion = getVersion( targetFile, /(\n?)(Stable tag:\W+)(\d+(\.\d+){0,3}(-RC\d+)?)(\n)/, 3 );
// Only change the file if the version does not match.
if ( currentVersion !== stableVersion ) {
grunt.verbose.writeln( "Stable tag version in readme.txt: " + currentVersion + "\n" +
"Retrieved version from wordpress.org: " + stableVersion + "\n" +
"Will set the version in readme.txt to the retrieved wordpress.org value now." );
setVersion( targetFile, /(\n?)(Stable tag:\W+)(\d+(\.\d+){0,3})(\n)/, "$1$2" + stableVersion + "\n" );
setVersion( targetFile, /(\n?)(Stable tag:\W+)(\d+(\.\d+){0,3}(-RC\d+)?)(\n)/, "$1$2" + stableVersion + "\n" );
}

return done();
Expand Down

0 comments on commit ac90de3

Please sign in to comment.