Dereference symlinks (#121)

This commit is contained in:
CrazyMax 2020-08-06 15:04:46 +02:00
parent edcd6240fe
commit 0a42a19ca7
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 6 additions and 2 deletions

4
dist/index.js generated vendored
View File

@ -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());

View File

@ -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')}`);