The app_store_connect_api_key action sets Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY] and actions (like pilot) will automatically load the API Key from Actions.lane_context
lane :release do
app_store_connect_api_key(
key_id: "D383SF739",
issuer_id: "6053b7fe-68a8-4acb-89be-165aa6465141",
key_filepath: "./AuthKey_D383SF739.p8",
duration: 1200, # optional (maximum 1200)
in_house: false, # optional but may be required if using match/sigh
)
# Automatically loads Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
pilot
end
Discussion
ありがとうございます。困っていたので助かりました。
綺麗にまとまっていて、とても参考になりました!ありがとうございます。
こちらは好みの問題もあるかもしれませんが、返り値を使わない形で
app_store_connect_api_keyを実行すると、以降のactionではapi_keyが自動設定されるようです。参考までに、共有させていただきます。
参考: Use the shared value in lane context
おおーこれは便利ですね!これを使うほうがよさそうです、ありがとうございます!