fix fqdn CNAME writeFileSync (#32)

Fix fqdn CNAME writeFileSync
This commit is contained in:
Sean Krail 2019-11-25 23:31:04 -08:00 committed by CrazyMax
parent 1ba804fd03
commit 1b94a74dfc
2 changed files with 4 additions and 4 deletions

View File

@ -69,8 +69,8 @@ function run() {
core.info(`🏃 Copying ${path.join(currentdir, build_dir)} contents to ${tmpdir}`);
fs_extra_1.copySync(path.join(currentdir, build_dir), tmpdir);
if (fqdn) {
core.info(`✍️ Writing ${fqdn} domain name to ${path.join(build_dir, 'CNAME')}`);
fs.writeFileSync(path.join(build_dir, 'CNAME'), fqdn.trim());
core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`);
fs.writeFileSync(path.join(tmpdir, 'CNAME'), fqdn.trim());
}
core.info(`🔨 Configuring git committer to be ${committer_name} <${committer_email}>`);
yield exec.exec('git', ['config', 'user.name', committer_name]);

View File

@ -55,8 +55,8 @@ async function run() {
copySync(path.join(currentdir, build_dir), tmpdir);
if (fqdn) {
core.info(`✍️ Writing ${fqdn} domain name to ${path.join(build_dir, 'CNAME')}`);
fs.writeFileSync(path.join(build_dir, 'CNAME'), fqdn.trim());
core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`);
fs.writeFileSync(path.join(tmpdir, 'CNAME'), fqdn.trim());
}
core.info(`🔨 Configuring git committer to be ${committer_name} <${committer_email}>`);