Not necessary in this PR but the conditions here are getting complicated enough that I think having a separate workflow for each input type would be cleaner and easier to maintain rather than having a high level of nesting under conditions in a single workflow