Is it possible to share a variable between multiple workflows that’s defined at runtime? For example, I want to set the CURRENT_GRADLEW
variable to a different value for use in both project_a
and project_b
.
So, if I wanted to build product_a
, I’d run the configure_product_a
workflow which would configure some variables and then consume them in both build_product_a
and test_product_a
.
workflows:
configure_product_a:
- CURRENT_GRADLEW: "xxyy"
configure_product_b:
- CURRENT_GRADLEW: "yyxx"
build_product_a:
steps:
- gradle-runner:
inputs:
- gradlew_path: $CURRENT_GRADLEW
build_product_b:
steps:
- gradle-runner:
inputs:
- gradlew_path: $CURRENT_GRADLEW
test_product_a:
steps:
- gradle-runner:
inputs:
- gradlew_path: $CURRENT_GRADLEW
test_product_b:
steps:
- gradle-runner:
inputs:
- gradlew_path: $CURRENT_GRADLEW
Many thanks