Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/capistrano/tasks/github.rake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace :github do
namespace :deployment do
desc 'Create new deployment'
task :create do
next if fetch(:github_deployment_skip)
next if fetch(:github_deployment_skip) || fetch(:current_github_deployment)

gh = fetch(:github_deployment_api)
payload = fetch(:github_deployment_payload)
Expand Down Expand Up @@ -70,7 +70,7 @@ namespace :github do
end
end

print_deployment = -> d { puts "Deployment (#{d.last_state}): #{d.created_at} #{d.ref}@#{d.sha} to #{d.environment} by @#{d.creator_login}" }
print_deployment = -> d { puts "Deployment##{d.id} (#{d.last_state}): #{d.created_at} #{d.ref}@#{d.sha} to #{d.environment} by @#{d.creator_login}" }
print_status = -> s { puts "\t#{s.created_at} state: #{s.state}" }

desc 'List Github deployments'
Expand Down