From b90b001159b0bca54dc2fb94ddbba9e85bf9ec54 Mon Sep 17 00:00:00 2001 From: Sally Young Date: Fri, 11 Aug 2023 14:47:14 +0100 Subject: [PATCH] Revert "Update deploy.yml" This reverts commit 35d5d18d67022e0e9d0de880f95a052de340b956. --- tasks/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/deploy.yml b/tasks/deploy.yml index 0d15d70e..17b29c43 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml @@ -7,7 +7,7 @@ tasks: Given a directory, pushes it to a git remote whilst maintaining a linear history with the remote. - usage: task deploy:git directory="/tmp/release" branch=main remote="git@github.com:Lullabot/drainpipe.git" message="Initial commit" push=true + usage: task deploy:git d="/tmp/release" b=main r="git@github.com:Lullabot/drainpipe.git" m="Initial commit" ge="bot@example.com" gn="Drainpipe Bot" directory= A directory containing the files to be pushed branch= Name of the branch to push to e.g. "main" @@ -32,6 +32,6 @@ tasks: git checkout -B {{.branch}} git add -A git commit --quiet --message {{shellQuote .message}} --allow-empty - if [ "" == {{shellQuote .push}} ] || [ {{shellQuote .push}} == "true" ]; then - git push origin {{.branch}} - fi + git push origin {{.branch}} + # Not using a bash-style comparison here due to https://github.com/go-task/task/issues/609 + {{if eq .push "true"}}git push origin {{.branch}}{{end}}