We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56bb17c commit 671b14bCopy full SHA for 671b14b
taskfiles/heroku.yml
@@ -6,15 +6,14 @@ shopt: ['globstar']
6
tasks:
7
login:
8
desc: "Login to Heroku"
9
- run: "once"
10
cmds:
11
- |
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
+ heroku auth:login
+ heroku container:login
+ run: "once"
+ silent: true
+ status:
+ - heroku auth:whoami >/dev/null 2>&1
18
19
env:
20
desc: Upload .env file to Heroku
0 commit comments