File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -20021,8 +20021,10 @@ async function run () {
20021
20021
// @see: https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
20022
20022
if (autoCommit) {
20023
20023
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
+ )
20026
20028
await exec.exec(`git add ${databasePath}`)
20027
20029
await exec.exec(`git add ${reportPath}`)
20028
20030
await exec.exec('git commit -m "Updated Jenkins Status"')
@@ -20086,9 +20088,7 @@ async function run () {
20086
20088
newDatabaseState[machine].diskUsage >= diskAlertLevel &&
20087
20089
!issueRelatedToMachine
20088
20090
) {
20089
- core.info(
20090
- `Generating issue for machine (${machine})...`
20091
- )
20091
+ core.info(`Generating issue for machine (${machine})...`)
20092
20092
await octokit.rest.issues.create({
20093
20093
...context.repo,
20094
20094
title: `${newDatabaseState[machine].name} has low disk space`,
Original file line number Diff line number Diff line change @@ -177,8 +177,10 @@ async function run () {
177
177
// @see : https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
178
178
if ( autoCommit ) {
179
179
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
+ )
182
184
await exec . exec ( `git add ${ databasePath } ` )
183
185
await exec . exec ( `git add ${ reportPath } ` )
184
186
await exec . exec ( 'git commit -m "Updated Jenkins Status"' )
You can’t perform that action at this time.
0 commit comments