Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable apport #64

Merged
merged 1 commit into from
Jan 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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