Skip to content

Commit

Permalink
Merge pull request #64 from sophia-guo/abrt
Browse files Browse the repository at this point in the history
disable apport
  • Loading branch information
smlambert authored Jan 6, 2021
2 parents 009ccca + c345154 commit 51df34f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3464,12 +3464,15 @@ function installDependencyAndSetup() {
else {
yield exec.exec('sudo apt-get update');
yield exec.exec('sudo apt-get install ant-contrib -y');
//environment
if ('RUNNER_USER' in process.env) {
process.env['LOGNAME'] = process.env['RUNNER_USER'];
}
else {
core.warning('RUNNER_USER is not the GitHub Actions environment variables shell script. Container is configured differently. Please check the updated lists of environment variables.');
}
//disable apport
yield exec.exec('sudo service apport stop');
}
});
}
Expand Down
4 changes: 4 additions & 0 deletions src/runaqa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,15 @@ async function installDependencyAndSetup(): Promise<void> {
} else {
await exec.exec('sudo apt-get update')
await exec.exec('sudo apt-get install ant-contrib -y')
//environment
if ('RUNNER_USER' in process.env) {
process.env['LOGNAME'] = process.env['RUNNER_USER']
} else {
core.warning('RUNNER_USER is not the GitHub Actions environment variables shell script. Container is configured differently. Please check the updated lists of environment variables.')
}

//disable apport
await exec.exec('sudo service apport stop')
}
}

Expand Down

0 comments on commit 51df34f

Please sign in to comment.