Skip to content

Commit c6b9c1e

Browse files
committed
fix applying --env if no TEA_DIR
1 parent c9d315c commit c6b9c1e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +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-
# GitHub Action 0.18.0
6+
# GitHub Action 0.18.1
77

88
```yaml
99
- uses: teaxyz/setup@v0

action.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ async function go() {
6363

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

6868
if (TEA_DIR && tea.pkg.version.gte(new SemVer("0.19"))) {
69-
env_args.push('--keep-going')
69+
env_args.push('--env', '--keep-going')
70+
} else if (TEA_DIR) {
71+
env_args.push('--env')
7072
}
7173

7274
let args = tea.pkg.version.gte(new SemVer("0.21"))

0 commit comments

Comments
 (0)