Skip to content

Commit

Permalink
use $GITHUB_WORKSPACE/opt as a preferred fallback to $HOME/opt
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider authored and mxcl committed Jan 1, 2023
1 parent ba211f5 commit 191b529
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

# GitHub Action 0.9.0
# GitHub Action 0.10.0

This repository also provides the `tea` GitHub Action.

Expand Down
4 changes: 3 additions & 1 deletion action.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const os = require("os")
async function go() {
process.stderr.write("determining latest tea version…\n")

const PREFIX = process.env['INPUT_PREFIX'] || `${os.homedir()}/opt`
const HOMEDIR = process.env['GITHUB_WORKSPACE'] || os.homedir()

const PREFIX = process.env['INPUT_PREFIX'] || `${HOMEDIR}/opt`
const TEA_DIR = (() => {
let TEA_DIR = process.env['INPUT_SRCROOT']
if (!TEA_DIR) return
Expand Down

0 comments on commit 191b529

Please sign in to comment.