Skip to content

Commit 671b14b

Browse files
build: use taskfile builtin status
1 parent 56bb17c commit 671b14b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

taskfiles/heroku.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ shopt: ['globstar']
66
tasks:
77
login:
88
desc: "Login to Heroku"
9-
run: "once"
109
cmds:
1110
- |
12-
out=$(heroku auth:whoami 2>&1)
13-
result=$(echo $out | awk '/Error/ {$1=""; print $0}' | xargs)
14-
if [[ "$result" =~ "Error: " ]]; then
15-
heroku auth:login
16-
heroku container:login
17-
fi
11+
heroku auth:login
12+
heroku container:login
13+
run: "once"
14+
silent: true
15+
status:
16+
- heroku auth:whoami >/dev/null 2>&1
1817

1918
env:
2019
desc: Upload .env file to Heroku

0 commit comments

Comments
 (0)