Skip to content

Commit 87cb9b7

Browse files
Lint fixes
1 parent d0ee7c3 commit 87cb9b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ async function run () {
1515

1616
// If this is not a PR, use the current branch.
1717
if (!branch) branch = process.env.GITHUB_REF
18-
18+
1919
// Output the branch that will be used.
2020
logger.info('Using branch:', branch)
2121

2222
// TODO: check if branch exists and create it if necessary.
23-
23+
2424
// Check if there are local changes.
2525
const { stdout: hasChanges } = await execa('git', ['status', '--porcelain'])
2626
if (hasChanges) {
@@ -29,7 +29,7 @@ async function run () {
2929
? process.env.INPUT_FILES.split('\n')
3030
: '.'
3131
await execa('git', ['add', files])
32-
32+
3333
// Check if there are staged changes.
3434
const args = ['diff', '--staged', '--name-only']
3535
const { stdout: hasStaged } = await execa('git', args)
@@ -39,7 +39,7 @@ async function run () {
3939
await execa('git', ['config', '--global', 'user.name', author])
4040
const email = 'github-actions[bot]@users.noreply.github.com'
4141
await execa('git', ['config', '--global', 'user.email', email])
42-
42+
4343
// Commit the changes.
4444
const message = process.env.INPUT_MESSAGE || 'Automated commit'
4545
await execa('git', ['commit', '-m', message])
@@ -51,12 +51,12 @@ async function run () {
5151
const origin = token
5252
? `https://${actor}:${token}@github.com/${repo}.git`
5353
: 'origin'
54-
await execa('git', ['push', origin, `HEAD:${branch}`])
54+
await execa('git', ['push', origin, `HEAD:${branch}`])
5555
} else {
5656
logger.info('No staged files', { hasStaged })
5757
}
5858
} else {
59-
logger.info('No local changes', { hasChanges })
59+
logger.info('No local changes', { hasChanges })
6060
}
6161
}
6262

0 commit comments

Comments
 (0)