Dereference symlinks (#121)
This commit is contained in:
parent
edcd6240fe
commit
0a42a19ca7
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -1836,7 +1836,9 @@ function run() {
|
||||||
yield git.checkout(targetBranch);
|
yield git.checkout(targetBranch);
|
||||||
}
|
}
|
||||||
core.info(`🏃 Copying ${path.join(currentdir, buildDir)} contents to ${tmpdir}`);
|
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) {
|
if (fqdn) {
|
||||||
core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`);
|
core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`);
|
||||||
yield fs.writeFileSync(path.join(tmpdir, 'CNAME'), fqdn.trim());
|
yield fs.writeFileSync(path.join(tmpdir, 'CNAME'), fqdn.trim());
|
||||||
|
|
|
@ -57,7 +57,9 @@ async function run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(`🏃 Copying ${path.join(currentdir, buildDir)} contents to ${tmpdir}`);
|
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) {
|
if (fqdn) {
|
||||||
core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`);
|
core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user