Skip to content

Commit

Permalink
Use RUNNER_TEMP for temp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
gk-bbai committed Oct 18, 2023
1 parent 6656401 commit 670be38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const events = ['pull_request', 'pull_request_target'];

async function run() {
try {
const tmpPath = path.resolve(os.tmpdir(), github.context.action);
console.log('Runner temp dir:', process.env.RUNNER_TEMP);
const tmpPath = path.resolve(process.env.RUNNER_TEMP, github.context.action);
const coverageFilesPattern = core.getInput('coverage-files');
const globber = await glob.create(coverageFilesPattern);
const coverageFiles = await globber.glob();
Expand Down

0 comments on commit 670be38

Please sign in to comment.