diff --git a/dist/index.js b/dist/index.js index 65b725d..795bccd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1799,7 +1799,7 @@ function run() { const author = core.getInput('author') || git.defaults.author; const commitMessage = core.getInput('commit_message') || git.defaults.message; const fqdn = core.getInput('fqdn'); - const jekyll = /false/i.test(core.getInput('jekyll')); + const nojekyll = /false/i.test(core.getInput('jekyll')); if (!fs.existsSync(buildDir)) { core.setFailed('Build dir does not exist'); return; @@ -1841,7 +1841,7 @@ function run() { core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`); yield fs.writeFileSync(path.join(tmpdir, 'CNAME'), fqdn.trim()); } - if (jekyll) { + if (nojekyll) { core.info(`🚫 Disabling Jekyll support via ${path.join(tmpdir, '.nojekyll')}`); yield fs.writeFileSync(path.join(tmpdir, '.nojekyll'), ''); } diff --git a/package.json b/package.json index 68e3512..7b70474 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@actions/io": "^1.0.2", "@types/fs-extra": "^9.0.1", - "@types/node": "^14.0.13", + "@types/node": "^14.0.14", "@zeit/ncc": "^0.22.3", "prettier": "^2.0.5", "typescript": "^3.9.5", diff --git a/src/main.ts b/src/main.ts index 1d4dbf9..73f9c96 100644 --- a/src/main.ts +++ b/src/main.ts @@ -17,7 +17,7 @@ async function run() { const author: string = core.getInput('author') || git.defaults.author; const commitMessage: string = core.getInput('commit_message') || git.defaults.message; const fqdn: string = core.getInput('fqdn'); - const jekyll: boolean = /false/i.test(core.getInput('jekyll')); + const nojekyll: boolean = /false/i.test(core.getInput('jekyll')); if (!fs.existsSync(buildDir)) { core.setFailed('Build dir does not exist'); @@ -64,7 +64,7 @@ async function run() { await fs.writeFileSync(path.join(tmpdir, 'CNAME'), fqdn.trim()); } - if (jekyll) { + if (nojekyll) { core.info(`🚫 Disabling Jekyll support via ${path.join(tmpdir, '.nojekyll')}`); await fs.writeFileSync(path.join(tmpdir, '.nojekyll'), ''); } diff --git a/yarn.lock b/yarn.lock index 2e44fdb..a8771cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -26,10 +26,10 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@^14.0.13": - version "14.0.13" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.13.tgz#ee1128e881b874c371374c1f72201893616417c9" - integrity sha512-rouEWBImiRaSJsVA+ITTFM6ZxibuAlTuNOCyxVbwreu6k6+ujs7DfnU9o+PShFhET78pMBl3eH+AGSI5eOTkPA== +"@types/node@*", "@types/node@^14.0.14": + version "14.0.14" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.14.tgz#24a0b5959f16ac141aeb0c5b3cd7a15b7c64cbce" + integrity sha512-syUgf67ZQpaJj01/tRTknkMNoBBLWJOBODF0Zm4NrXmiSuxjymFrxnTu1QVYRubhVkRcZLYZG8STTwJRdVm/WQ== "@zeit/ncc@^0.22.3": version "0.22.3"