Skip to content

Commit 2e1ed62

Browse files
committed
Fix inputs
1 parent ad788b5 commit 2e1ed62

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Following inputs can be used as `step.with` keys
6565
| `keep_history` | Bool | Create incremental commit instead of doing push force (default `false`) |
6666
| `allow_empty_commit` | Bool | Allow an empty commit to be created (default `true`) |
6767
| `build_dir` | String | Build directory to deploy (**required**) |
68-
| `comitter_name` | String | Commit author's name (default [GITHUB_ACTOR](https://help.github.com/en/github/automating-your-workflow-with-github-actions/using-environment-variables#default-environment-variables) or `github-actions`) |
69-
| `comitter_email` | String | Commit author's email (default `<committer_name>@users.noreply.github.com`) |
68+
| `committer_name` | String | Commit author's name (default [GITHUB_ACTOR](https://help.github.com/en/github/automating-your-workflow-with-github-actions/using-environment-variables#default-environment-variables) or `github-actions`) |
69+
| `committer_email` | String | Commit author's email (default `<committer_name>@users.noreply.github.com`) |
7070
| `commit_message` | String | Commit message (default `Deploy to GitHub pages`) |
7171
| `fqdn` | String | Write the given domain name to the CNAME file |
7272

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ inputs:
2121
build_dir:
2222
description: 'Build directory to deploy'
2323
required: true
24-
comitter_name:
24+
committer_name:
2525
description: 'Commit author''s name'
26-
comitter_email:
26+
committer_email:
2727
description: 'Commit author''s email'
2828
commit_message:
2929
description: 'Commit message'

lib/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ function run() {
3131
const keep_history = /true/i.test(core.getInput('keep_history'));
3232
const allow_empty_commit = /true/i.test(core.getInput('allow_empty_commit'));
3333
const build_dir = core.getInput('build_dir', { required: true });
34-
const comitter_name = core.getInput('comitter_name') || process.env['GITHUB_ACTOR'] || 'github-actions';
35-
const comitter_email = core.getInput('comitter_email') || `${comitter_name}@users.noreply.github.com`;
34+
const committer_name = core.getInput('committer_name') || process.env['GITHUB_ACTOR'] || 'github-actions';
35+
const committer_email = core.getInput('committer_email') || `${committer_name}@users.noreply.github.com`;
3636
const commit_message = core.getInput('commit_message') || 'Deploy to GitHub pages';
3737
const fqdn = core.getInput('fqdn');
3838
if (!fs.existsSync(build_dir)) {
@@ -72,9 +72,9 @@ function run() {
7272
core.info(`✍️ Writing ${fqdn} domain name to ${path.join(build_dir, 'CNAME')}`);
7373
fs.writeFileSync(path.join(build_dir, 'CNAME'), fqdn.trim());
7474
}
75-
core.info(`🔨 Configuring git committer to be ${comitter_name} <${comitter_email}>`);
76-
yield exec.exec('git', ['config', 'user.name', comitter_name]);
77-
yield exec.exec('git', ['config', 'user.email', comitter_email]);
75+
core.info(`🔨 Configuring git committer to be ${committer_name} <${committer_email}>`);
76+
yield exec.exec('git', ['config', 'user.name', committer_name]);
77+
yield exec.exec('git', ['config', 'user.email', committer_email]);
7878
try {
7979
child_process.execSync('git status --porcelain').toString();
8080
}

src/main.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ async function run() {
1313
const keep_history: boolean = /true/i.test(core.getInput('keep_history'));
1414
const allow_empty_commit: boolean = /true/i.test(core.getInput('allow_empty_commit'));
1515
const build_dir: string = core.getInput('build_dir', {required: true});
16-
const comitter_name: string = core.getInput('comitter_name') || process.env['GITHUB_ACTOR'] || 'github-actions';
17-
const comitter_email: string = core.getInput('comitter_email') || `${comitter_name}@users.noreply.github.com`;
16+
const committer_name: string = core.getInput('committer_name') || process.env['GITHUB_ACTOR'] || 'github-actions';
17+
const committer_email: string = core.getInput('committer_email') || `${committer_name}@users.noreply.github.com`;
1818
const commit_message: string = core.getInput('commit_message') || 'Deploy to GitHub pages';
1919
const fqdn: string = core.getInput('fqdn');
2020

@@ -59,9 +59,9 @@ async function run() {
5959
fs.writeFileSync(path.join(build_dir, 'CNAME'), fqdn.trim());
6060
}
6161

62-
core.info(`🔨 Configuring git committer to be ${comitter_name} <${comitter_email}>`);
63-
await exec.exec('git', ['config', 'user.name', comitter_name]);
64-
await exec.exec('git', ['config', 'user.email', comitter_email]);
62+
core.info(`🔨 Configuring git committer to be ${committer_name} <${committer_email}>`);
63+
await exec.exec('git', ['config', 'user.name', committer_name]);
64+
await exec.exec('git', ['config', 'user.email', committer_email]);
6565

6666
try {
6767
child_process.execSync('git status --porcelain').toString();

0 commit comments

Comments
 (0)