Skip to content

Commit 3b18e3c

Browse files
authored
default install location outside the workspace (#130)
1 parent e1e7309 commit 3b18e3c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

action.js

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

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

action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ description: >
44
inputs:
55
prefix:
66
description: >
7-
Where tea installs.
8-
Set to `null` to install to the tea default (~/.tea).
9-
For GHA we default to `~/opt`.
7+
Where tea stows its packages.
8+
Defaults to `$HOME/.tea`.
109
required: false
1110
version:
1211
description: >

0 commit comments

Comments
 (0)