Sequentially uploading scripts in two different schemas

we have two different schemas in oracle db and now we are trying to do a sequential order of the changelogs. For ex =: we have a dependency folder where we author sql files. once the files are completed we want to deploy to the oracle db where the two schemas are present. while deploying we want to run some scripts in schema 1 and then schema2 and then again in schema 1. Is there a way to do it?