Skip to content

Commit

Permalink
+ onError commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Komrakov committed Sep 14, 2015
1 parent d3c6d31 commit 7c46ad1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pull_request:
- ssh: ls
- ssh: wheris {{sha}}
- status: success
onError:
error:
- status: error
push:
branch: refs/heads/master
Expand Down
2 changes: 1 addition & 1 deletion mongo/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type DeployScenario struct {
Branch string
Host string
Commands []map[string]string
OnError []map[string]string
Error []map[string]string
}

type Repository struct {
Expand Down
2 changes: 1 addition & 1 deletion service/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func RunCommands(deploy map[string]mongo.DeployScenario, client *github.Client,
if has_error == true {
fmt.Println(config)

for _, command := range config.OnError {
for _, command := range config.Error {
fmt.Println(command)
for commandType, actionStr := range command {
fmt.Println(actionStr)
Expand Down

0 comments on commit 7c46ad1

Please sign in to comment.