Skip to content

Commit c907a10

Browse files
committed
Support disabling dev-envs with srcroot: null
1 parent bc5244e commit c907a10

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
* [`install.sh`](./install.sh) is delivered when you `curl tea.xyz`.
44
* This repository also provides the `tea` GitHub Action.
55

6-
7-
# GitHub Action 0.14.0
6+
# GitHub Action 0.15.0
87

98
```yaml
109
- uses: teaxyz/setup@v0

action.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async function go() {
102102
const GITHUB_OUTPUT = process.env['GITHUB_OUTPUT']
103103

104104
const vv = parseFloat(v)
105-
const env_flag = vv >= 0.19 ? '--env --keep-going' : '--env'
105+
const env_flag = TEA_DIR ? vv >= 0.19 ? '--env --keep-going' : '--env' : ''
106106

107107
// get env FIXME one call should do init
108108

@@ -150,6 +150,7 @@ async function go() {
150150
}
151151

152152
//TODO deprecated exe/md
153+
//NOTE BUT LEAVE BECAUSE WE ONCE SUPPORTED THIS
153154
const target = process.env['INPUT_TARGET']
154155
if (target) {
155156
execSync(`${teafile} ${target}`, {stdio: "inherit", env})

action.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,11 @@ inputs:
3232
required: false
3333
srcroot:
3434
description: |
35-
Override detection of `$SRCROOT`.
35+
Override detection of the developer-environment’s `$SRCROOT`.
3636
37-
tea normally finds your `$SRCROOT` by looking for a `.git` directory.
38-
However, if git is not installed the checkout action uses the GitHub
39-
API to download the repository.
40-
41-
You will need this if you depend on the virtual environment tea
42-
provides.
37+
Set to `null` to disable the developer-environment.
38+
default: .
39+
required: false
4340
outputs:
4441
version:
4542
description: Your project’s version.

0 commit comments

Comments
 (0)