I encounter a problem when writing cd pipeline yaml file with Forge Commands:
Scenario 1: 1st time to install the new app
forge install after forge deploy
Scenario 2：afterwards and the new app has been installed
we just need forge deploy but not forge install
And my question is: how to write a yaml file to consider the above 2 scenarios? I know the difficulty is to need a statement to decide if the app has been installed to the destination environment or not.
Could anyone have any ideas or suggestions? Thanks.