From 25d9ecc98904f24bc2894a1191375ab196a3fa99 Mon Sep 17 00:00:00 2001 From: Chenhao Zuo Date: Wed, 29 Jan 2025 15:50:42 -0800 Subject: [PATCH] Add note for bxl dynamic actions impl function argument Summary: The first argument of the impl function for dynamic actions must be bxl_ctx. However, this requirement is not mentioned in the documentation. This diff adds a note to clarify it. Reviewed By: iguridi Differential Revision: D68860764 fbshipit-source-id: 19b00fb3d3568ac7c7522bdf499dbe687bac4f55 --- .../how_to_run_actions_based_on_the_content_of_artifact.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/bxl/how_tos/how_to_run_actions_based_on_the_content_of_artifact.md b/docs/bxl/how_tos/how_to_run_actions_based_on_the_content_of_artifact.md index 55e5a44afb63..a1f985147d54 100644 --- a/docs/bxl/how_tos/how_to_run_actions_based_on_the_content_of_artifact.md +++ b/docs/bxl/how_tos/how_to_run_actions_based_on_the_content_of_artifact.md @@ -60,6 +60,8 @@ dynamic attributes can be found [here](../../../api/build/dynattrs) We need to declare all arguments defined in step3 and bxl context. +**Note:** The name of the first argument in the impl function must be `bxl_ctx`. + We can read the `file` content by `read_string()` or `read_json()`. Details can be found [here](../../../api/build/ArtifactValue/)