How to check if folder exist using run_if?

#1

Hi,

As it mentioned in Bitrise docs run_if accept any valid Go Template. Is there any possibility to check if folder exist like this: run_if {{ exists .path/to/folder }}. I know that we can check if it exist in script step and store to ENV variable and check in run_if step.

Do we have any example how to create own Go Templates and make them work with Birtise?

Thank you!

0 Likes

#2

Hi @Andrii.Furmanets,

Can you please share the code that you have right now?

0 Likes