Skip to content

Commit 191b529

Browse files
jhheidermxcl
authored andcommitted
use $GITHUB_WORKSPACE/opt as a preferred fallback to $HOME/opt
1 parent ba211f5 commit 191b529

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[`install.sh`](./install.sh) is delivered when you `curl tea.xyz`.
44

5-
# GitHub Action 0.9.0
5+
# GitHub Action 0.10.0
66

77
This repository also provides the `tea` GitHub Action.
88

action.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ const os = require("os")
77
async function go() {
88
process.stderr.write("determining latest tea version…\n")
99

10-
const PREFIX = process.env['INPUT_PREFIX'] || `${os.homedir()}/opt`
10+
const HOMEDIR = process.env['GITHUB_WORKSPACE'] || os.homedir()
11+
12+
const PREFIX = process.env['INPUT_PREFIX'] || `${HOMEDIR}/opt`
1113
const TEA_DIR = (() => {
1214
let TEA_DIR = process.env['INPUT_SRCROOT']
1315
if (!TEA_DIR) return

0 commit comments

Comments
 (0)