Skip to content

Commit

Permalink
disable apport
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <[email protected]>
  • Loading branch information
sophia-guo committed Jan 6, 2021
1 parent 009ccca commit c345154
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 c345154

Please sign in to comment.