Skip to content

Commit bb5e8d9

Browse files
authored
Merge pull request #13 from UlisesGascon/fix/email-committer
fix: add git identity for Github Actions bot
2 parents 0f27452 + 13adcf2 commit bb5e8d9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

dist/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20021,8 +20021,10 @@ async function run () {
2002120021
// @see: https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
2002220022
if (autoCommit) {
2002320023
core.info('Committing changes to database and report')
20024-
await exec.exec('git config user.name github-actions')
20025-
await exec.exec('git config user.email [email protected]')
20024+
await exec.exec('git config user.name github-actions[bot]')
20025+
await exec.exec(
20026+
'git config user.email github-actions[bot]@users.noreply.github.com'
20027+
)
2002620028
await exec.exec(`git add ${databasePath}`)
2002720029
await exec.exec(`git add ${reportPath}`)
2002820030
await exec.exec('git commit -m "Updated Jenkins Status"')
@@ -20086,9 +20088,7 @@ async function run () {
2008620088
newDatabaseState[machine].diskUsage >= diskAlertLevel &&
2008720089
!issueRelatedToMachine
2008820090
) {
20089-
core.info(
20090-
`Generating issue for machine (${machine})...`
20091-
)
20091+
core.info(`Generating issue for machine (${machine})...`)
2009220092
await octokit.rest.issues.create({
2009320093
...context.repo,
2009420094
title: `${newDatabaseState[machine].name} has low disk space`,

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,10 @@ async function run () {
177177
// @see: https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
178178
if (autoCommit) {
179179
core.info('Committing changes to database and report')
180-
await exec.exec('git config user.name github-actions')
181-
await exec.exec('git config user.email [email protected]')
180+
await exec.exec('git config user.name github-actions[bot]')
181+
await exec.exec(
182+
'git config user.email github-actions[bot]@users.noreply.github.com'
183+
)
182184
await exec.exec(`git add ${databasePath}`)
183185
await exec.exec(`git add ${reportPath}`)
184186
await exec.exec('git commit -m "Updated Jenkins Status"')

0 commit comments

Comments
 (0)