Skip to content

Commit

Permalink
Use process.env.RUNNER_TEMP instead of os.tmpdir() (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaylward authored Oct 30, 2024
1 parent 93a7248 commit 2ebddb2
Show file tree
Hide file tree
Showing 7 changed files with 632 additions and 234 deletions.
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (repositoryCacheEnabled) {
const googleCredentials = core.getInput('google-credentials')
const googleCredentialsSaved = (core.getState('google-credentials-path').length > 0)
if (googleCredentials.length > 0 && !googleCredentialsSaved) {
const tmpDir = core.toPosixPath(fs.mkdtempSync(os.tmpdir()))
const tmpDir = core.toPosixPath(fs.mkdtempSync(process.env.RUNNER_TEMP))
const googleCredentialsPath = `${tmpDir}/key.json`
fs.writeFileSync(googleCredentialsPath, googleCredentials)
bazelrc.push(`build --google_credentials=${googleCredentialsPath}`)
Expand Down
427 changes: 313 additions & 114 deletions dist/main/index.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

427 changes: 313 additions & 114 deletions dist/post/index.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-bazel",
"version": "0.9.0",
"version": "0.9.1",
"description": "Install and configure Bazel for GitHub Actions",
"main": "index.js",
"engines": {
Expand Down

0 comments on commit 2ebddb2

Please sign in to comment.