From 0a42a19ca71a44829340efcf3d020acb0c176f19 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 6 Aug 2020 15:04:46 +0200 Subject: [PATCH] Dereference symlinks (#121) --- dist/index.js | 4 +++- src/main.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index ca625429beb..cc3049fdcf8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1836,7 +1836,9 @@ function run() { yield git.checkout(targetBranch); } core.info(`🏃 Copying ${path.join(currentdir, buildDir)} contents to ${tmpdir}`); - yield fs_extra_1.copySync(path.join(currentdir, buildDir), tmpdir); + yield fs_extra_1.copySync(path.join(currentdir, buildDir), tmpdir, { + dereference: true + }); if (fqdn) { core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`); yield fs.writeFileSync(path.join(tmpdir, 'CNAME'), fqdn.trim()); diff --git a/src/main.ts b/src/main.ts index e8fe012bb9c..145270f9810 100644 --- a/src/main.ts +++ b/src/main.ts @@ -57,7 +57,9 @@ async function run() { } core.info(`🏃 Copying ${path.join(currentdir, buildDir)} contents to ${tmpdir}`); - await copySync(path.join(currentdir, buildDir), tmpdir); + await copySync(path.join(currentdir, buildDir), tmpdir, { + dereference: true + }); if (fqdn) { core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`);