cols-agent-tasks icon indicating copy to clipboard operation
cols-agent-tasks copied to clipboard

Replace Tokens Feature Request: Allow task to work with zip files

Open deadlydog opened this issue 4 years ago • 3 comments

It would be awesome if when the Source Path points at a zip file, that it could automatically unzip the file to a temporary directory, do the token replacement, and then zip the directory back up and overwrite the original zip file. That is what the MS File Transform task does and it's super useful, especially for .Net Framework web apps which typically get zipped up into an MsDeploy package when published.

deadlydog avatar Jul 24 '20 21:07 deadlydog

I think you could do this using an unzip, replace, zip sequence. But I'm happy to accept a PR for this!

colindembovsky avatar Aug 07 '20 13:08 colindembovsky

Hey @colindembovsky the PR to add zip file support is up :) You'll want to pull down the branch and run the test to make sure it works as expected though (I couldn't get the tests to run properly for some reason).

deadlydog avatar Aug 15 '20 16:08 deadlydog

@colindembovsky any chance you've had time to take a look at the PR yet? I also see a number of other PRs waiting to be merged in, most of which are low risk documentation PRs. Hopefully you'll have time to give this project some more love soon :)

deadlydog avatar Aug 26 '20 15:08 deadlydog