From 1b94a74dfcca8049b6eb346dfd0e329abe1e982b Mon Sep 17 00:00:00 2001 From: Sean Krail <21267343+sean-krail@users.noreply.github.com> Date: Mon, 25 Nov 2019 23:31:04 -0800 Subject: [PATCH] fix fqdn CNAME writeFileSync (#32) Fix fqdn CNAME writeFileSync --- lib/main.js | 4 ++-- src/main.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/main.js b/lib/main.js index 25eb905..fa40820 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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]); diff --git a/src/main.ts b/src/main.ts index f065b0a..52ca7fb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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}>`);