Skip to content

Commit

Permalink
Support disabling dev-envs with srcroot: null
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 11, 2023
1 parent bc5244e commit c907a10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* [`install.sh`](./install.sh) is delivered when you `curl tea.xyz`.
* This repository also provides the `tea` GitHub Action.


# GitHub Action 0.14.0
# GitHub Action 0.15.0

```yaml
- uses: teaxyz/setup@v0
Expand Down
3 changes: 2 additions & 1 deletion action.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function go() {
const GITHUB_OUTPUT = process.env['GITHUB_OUTPUT']

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

// get env FIXME one call should do init

Expand Down Expand Up @@ -150,6 +150,7 @@ async function go() {
}

//TODO deprecated exe/md
//NOTE BUT LEAVE BECAUSE WE ONCE SUPPORTED THIS
const target = process.env['INPUT_TARGET']
if (target) {
execSync(`${teafile} ${target}`, {stdio: "inherit", env})
Expand Down
11 changes: 4 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@ inputs:
required: false
srcroot:
description: |
Override detection of `$SRCROOT`.
Override detection of the developer-environment’s `$SRCROOT`.
tea normally finds your `$SRCROOT` by looking for a `.git` directory.
However, if git is not installed the checkout action uses the GitHub
API to download the repository.
You will need this if you depend on the virtual environment tea
provides.
Set to `null` to disable the developer-environment.
default: .
required: false
outputs:
version:
description: Your project’s version.
Expand Down

0 comments on commit c907a10

Please sign in to comment.