diff --git a/README.md b/README.md index dc1843f..f7aa569 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,9 @@ If you want to use tokens in XML based configuration files to be replaced during - replace tokens in your updated configuration file ## Release notes +**New in 3.2.2** +- Fix matching issue with directory + **New in 3.2.1** - Fix log issue with escaped secret values diff --git a/make.js b/make.js index abad446..46ac2e9 100644 --- a/make.js +++ b/make.js @@ -104,7 +104,7 @@ target.package = function() { if (options.version === 'auto') { var ref = new Date(2000, 1, 1); var now = new Date(); - var major = 2 + var major = 3 var minor = Math.floor((now - ref) / 86400000); var patch = Math.floor(Math.floor(now.getSeconds() + (60 * (now.getMinutes() + (60 * now.getHours())))) * 0.5) options.version = major + '.' + minor + '.' + patch diff --git a/task/index.ts b/task/index.ts index c8f7097..b8bc539 100644 --- a/task/index.ts +++ b/task/index.ts @@ -334,6 +334,11 @@ async function run() { // process files tl.findMatch(root, targetFiles).forEach(filePath => { + if (tl.stats(filePath).isDirectory()) + { + return; + } + if (!tl.exist(filePath)) { logger.error('file not found: ' + filePath); diff --git a/task/task.json b/task/task.json index 7b764d8..52f2c56 100644 --- a/task/task.json +++ b/task/task.json @@ -13,7 +13,7 @@ "version": { "Major": 3, "Minor": 2, - "Patch": 1 + "Patch": 2 }, "instanceNameFormat": "Replace tokens in $(targetFiles)", "minimumAgentVersion": "2.105.0", diff --git a/vss-extension.json b/vss-extension.json index 5621ed7..824d741 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -2,7 +2,7 @@ "manifestVersion": 1, "id": "replacetokens", "name": "Replace Tokens", - "version": "3.2.1", + "version": "3.2.2", "public": true, "publisher": "qetza", "targets": [