Revert "(maint) Simplify File Write Action"

This reverts commit 0f033de3287a7ddf77c00792fd6fba62f35f6567.