Skip to content

Commit

Permalink
fix applying --env if no TEA_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed May 28, 2023
1 parent c9d315c commit c6b9c1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* [`install.sh`](./install.sh) is delivered when you `curl tea.xyz`.
* This repository also provides the `tea` GitHub Action.

# GitHub Action 0.18.0
# GitHub Action 0.18.1

```yaml
- uses: teaxyz/setup@v0
Expand Down
6 changes: 4 additions & 2 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ async function go() {

const tea = await useCellar().resolve({project: 'tea.xyz', constraint: new semver.Range('*')})
const teafile = tea.path.join('bin/tea').string
const env_args = ['--env']
const env_args = []

if (TEA_DIR && tea.pkg.version.gte(new SemVer("0.19"))) {
env_args.push('--keep-going')
env_args.push('--env', '--keep-going')
} else if (TEA_DIR) {
env_args.push('--env')
}

let args = tea.pkg.version.gte(new SemVer("0.21"))
Expand Down
Loading

0 comments on commit c6b9c1e

Please sign in to comment.