We moved `@actions/http-client` to be part of the toolkit in https://github.com/actions/toolkit/pull/1062. We also made some breaking changes to exported types and released v2.
The biggest change in terms of lines of code affected was to get rid of the `I-` prefix for interfaces since TypeScript doesn't follow this convention.
I bumped the patch version of all packages except for `tool-cache`, where I bumped the major version. The rationale is explained in the release notes for that package.
* Add new powershell commands for windows unzip
* Test fails to overwrite file
* Add new windows commands for unzip
* Add Test for failing case for both pwsh and powershell
* Modify test to confirm overwrite behavior for xar
* Delete ._test.txt
* Add fallback case for older windows systems
* Remove try
* Run Tests on windows-2016
* Update tar tests to handle existing files
* Lint
* Update tool-cache.test.ts
* Update tool-cache.test.ts
* Update tool-cache.test.ts
* Update tool-cache.test.ts
* Update from PR feedback
* Test xar extraction
* Support for extracting xar compatible archives
* Only allow extractXar on mac
* Create xar during test instead of using prebuilt
* Update lockfiles
* Add verbose flag if debug
* Add extractXar example to readme
* Revert "Update lockfiles"
This reverts commit a6cbddccf6.
* Use node pkg in example
* Remove and ignore prebuilt xar
* Tests for non-existing dir and without flags
* Better arguments handling
* Make sure that target directory exists
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
* tool-cache: make unzip and 7z extract quiet by default
This avoids spamming the log when unzipping large archives.
* tool-cache: make tar, unzip and 7z verbose when `core.isDebug`
Make the extract function print the list of extracted file if
the action is run in debug mode.
The default downloadTool implementation strips the filename so when passing it to the extractTar function, it doesn't have a way of knowing the format without manually specifying it. However what the extractTar function arguments meant and how to specify them wasn't clear before reading the source code, so the documentation here got updated to reflect that.
* added test for extracting .tar.gz
* added ability to extract .tar.xz
* add flags to extract tar
* make use of tempPath
* check file contents and make different content for tar file