From c34515446ac3eaf866552d6931a559b1947e372d Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Tue, 5 Jan 2021 16:45:14 -0500 Subject: [PATCH] disable apport Signed-off-by: Sophia Guo --- dist/index.js | 3 +++ src/runaqa.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/dist/index.js b/dist/index.js index 6d048bb..7e0f698 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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'); } }); } diff --git a/src/runaqa.ts b/src/runaqa.ts index 3f81e48..37bd4f2 100644 --- a/src/runaqa.ts +++ b/src/runaqa.ts @@ -115,11 +115,15 @@ async function installDependencyAndSetup(): Promise { } 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') } }