Skip to content

Commit

Permalink
Make sure template is not being processed if it is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklyp committed Sep 5, 2024
1 parent f63e985 commit 32a081f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ def self.run(params)

task_id = Fastlane::Actions::AsanaExtractTaskIdAction.run(task_url: task_url) if task_url

if template_name
if template_name.to_s.empty?
text = "#{comment}\n\nWorkflow URL: #{workflow_url}"
create_story(asana_access_token, task_id, text: text)
else
template_content = load_template_file(template_name)
return unless template_content

html_text = process_template_content(template_content)
create_story(asana_access_token, task_id, html_text: html_text)
else
text = "#{comment}\n\nWorkflow URL: #{workflow_url}"
create_story(asana_access_token, task_id, text: text)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/ddg_apple_automation/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Fastlane
module DdgAppleAutomation
VERSION = "0.6.0"
VERSION = "0.6.1"
end
end

0 comments on commit 32a081f

Please sign in to comment.