Skip to content

Commit

Permalink
Revert "Update deploy.yml"
Browse files Browse the repository at this point in the history
This reverts commit 35d5d18.
  • Loading branch information
justafish committed Aug 11, 2023
1 parent 3d9d2a8 commit b90b001
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=<directory> A directory containing the files to be pushed
branch=<branch> Name of the branch to push to e.g. "main"
Expand All @@ -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}}

0 comments on commit b90b001

Please sign in to comment.