Merge pull request #718 from kiwix/fix_dl_deps_archive
This commit is contained in:
commit
c917ff08c3
|
@ -30500,17 +30500,17 @@ async function run() {
|
||||||
|
|
||||||
let archivePath;
|
let archivePath;
|
||||||
try {
|
try {
|
||||||
const archive_url = `${base_url}/dev_preview/${branch}/deps_${target}_${project}.tar.xz`;
|
const archive_url = `${base_url}/dev_preview/${branch}/deps_${target}_${project}.tar.gz`;
|
||||||
process.stdout.write("Downloading " + archive_url + "\n");
|
process.stdout.write("Downloading " + archive_url + "\n");
|
||||||
archivePath = await tc.downloadTool(archive_url);
|
archivePath = await tc.downloadTool(archive_url);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const archive_url = `${base_url}/deps_${target}_${project}.tar.xz`;
|
const archive_url = `${base_url}/deps_${target}_${project}.tar.gz`;
|
||||||
process.stdout.write("Downloading " + archive_url + "\n");
|
process.stdout.write("Downloading " + archive_url + "\n");
|
||||||
archivePath = await tc.downloadTool(archive_url);
|
archivePath = await tc.downloadTool(archive_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
process.stdout.write("Extracting " + archivePath + " to " + extract_dir);
|
process.stdout.write("Extracting " + archivePath + " to " + extract_dir);
|
||||||
const archive_dir = await tc.extractTar(archivePath, extract_dir, "x");
|
const archive_dir = await tc.extractTar(archivePath, extract_dir);
|
||||||
process.stdout.write("Extracted to " + archive_dir);
|
process.stdout.write("Extracted to " + archive_dir);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|
Loading…
Reference in New Issue