Generate actions when building the module graph. am: eb0454b2a4 am: 893308aa08

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1870487

Change-Id: Ia5c87cae53ab7dd1a2cb0e718ceffadc7d92a3fd