From 75c04209d2f8464451ddfb9049de74b3cb00899e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20=C5=81yp?= Date: Thu, 12 Sep 2024 16:44:55 +0200 Subject: [PATCH] Rename var --- .../actions/asana_create_action_item_action.rb | 2 +- spec/asana_create_action_item_action_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fastlane/plugin/ddg_apple_automation/actions/asana_create_action_item_action.rb b/lib/fastlane/plugin/ddg_apple_automation/actions/asana_create_action_item_action.rb index 090feea..428f28f 100644 --- a/lib/fastlane/plugin/ddg_apple_automation/actions/asana_create_action_item_action.rb +++ b/lib/fastlane/plugin/ddg_apple_automation/actions/asana_create_action_item_action.rb @@ -55,7 +55,7 @@ def self.run(params) UI.user_error!("Failed to create subtask for task: #{e}") end - Helper::GitHubActionsHelper.set_output("new_task_id", subtask.gid) if subtask&.gid + Helper::GitHubActionsHelper.set_output("asana_new_task_id", subtask.gid) if subtask&.gid end def self.description diff --git a/spec/asana_create_action_item_action_spec.rb b/spec/asana_create_action_item_action_spec.rb index 69d9ab4..f7750e2 100644 --- a/spec/asana_create_action_item_action_spec.rb +++ b/spec/asana_create_action_item_action_spec.rb @@ -89,7 +89,7 @@ it "correctly sets output" do allow(@asana_client_tasks).to receive(:create_subtask_for_task).and_return(double('subtask', gid: "42")) test_action(task_url: task_url, task_name: task_name, notes: "notes", is_scheduled_release: true) - expect(Fastlane::Helper::GitHubActionsHelper).to have_received(:set_output).with("new_task_id", "42") + expect(Fastlane::Helper::GitHubActionsHelper).to have_received(:set_output).with("asana_new_task_id", "42") end end