Revert "Adding fix for tar exiting with code 1 issue"

This reverts commit ad2fd7b5e6.
This commit is contained in:
Sankalp Kotewar authored and GitHub committed 2022-06-06 07:56:27 +00:00
1 parent ad0bcfaed5
commit 0c96c069df
3 files changed
+2 -7

No files matched your search

+1 -4
View File
@@ -64,7 +64,4 @@
- Update to v2.0.1 of `@actions/http-client` [#1087](https://github.com/actions/toolkit/pull/1087)
### 2.0.5
- Fix to avoid saving empty cache when no files are available for caching. ([issue](https://github.com/actions/cache/issues/624))
### 2.0.6
- Fix `Tar failed with error: The process '/usr/bin/tar' failed with exit code 1` issue when temp directory where tar is getting created is actually the subdirectory of the path mentioned by the user for caching. ([issue](https://github.com/actions/cache/issues/689))
- Fix to avoid saving empty cache when no files are available for caching. ([issue](https://github.com/actions/cache/issues/624))
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@actions/cache",
"version": "2.0.6",
"version": "2.0.5",
"preview": true,
"description": "Actions cache lib",
"keywords": [
-2
View File
@@ -118,8 +118,6 @@ export async function createTar(
...getCompressionProgram(),
'-cf',
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
'--exclude',
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
'-P',
'-C',
workingDirectory.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),