alpha
Login
or
Join now
andri.dk
/
setup-rclone-action
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/andrioid/setup-rclone-action. downloads and caches rclone for your workflows
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
disabling cache to make sure
author
Andri Oskarsson
date
5 years ago
(Apr 30, 2021, 8:10 AM +0200)
commit
7bf7bc38
7bf7bc3880f9deccaa10169cd7bde442bfb39f6f
parent
f9dfd416
f9dfd4166f2a6f894586edcbe3ba7342dab2cb65
+6
-6
2 changed files
Expand all
Collapse all
Unified
Split
dist
index.js
index.ts
+3
-3
dist/index.js
View file
Reviewed
···
3906
3906
}
3907
3907
const platform = `${import_os.default.platform()}-${arch}`;
3908
3908
let toolPath = import_tool_cache.default.find(FILENAME, version, arch);
3909
3909
-
if (!toolPath) {
3909
3909
+
if (!toolPath || true) {
3910
3910
const context = {
3911
3911
PLATFORM: platform,
3912
3912
RCLONE_VERSION: version
···
3916
3916
});
3917
3917
const dirName = `rclone-v${version}-${platform}`;
3918
3918
const downloadPath = await import_tool_cache.default.downloadTool(rendered);
3919
3919
-
const extractPath = await (0, import_tool_cache.extractZip)(downloadPath, "./");
3920
3920
-
const extractedPath = import_path.default.join(dirName, FILENAME);
3919
3919
+
const extractPath = await (0, import_tool_cache.extractZip)(downloadPath);
3920
3920
+
const extractedPath = import_path.default.join(extractPath, dirName, FILENAME);
3921
3921
toolPath = await import_tool_cache.default.cacheFile(extractedPath, FILENAME, FILENAME, version);
3922
3922
}
3923
3923
(0, import_core.debug)("toolpath:" + toolPath);
+3
-3
index.ts
View file
Reviewed
···
20
20
const platform = `${os.platform()}-${arch}`; // Not tested with other than Linux
21
21
22
22
let toolPath = cache.find(FILENAME, version, arch);
23
23
-
if (!toolPath) {
23
23
+
if (!toolPath || true) {
24
24
const context: { [key: string]: string } = {
25
25
PLATFORM: platform,
26
26
RCLONE_VERSION: version,
···
31
31
const dirName = `rclone-v${version}-${platform}`;
32
32
33
33
const downloadPath = await cache.downloadTool(rendered);
34
34
-
const extractPath = await extractZip(downloadPath, "./");
34
34
+
const extractPath = await extractZip(downloadPath);
35
35
36
36
-
const extractedPath = path.join(dirName, FILENAME);
36
36
+
const extractedPath = path.join(extractPath, dirName, FILENAME);
37
37
38
38
toolPath = await cache.cacheFile(
39
39
extractedPath,