https://github.com/sensorbucket/PythonClient
When a new commit is pushed to main, trigger a workflow in the PythonClient repository. This workflow should checkout the new commit and generate the PythonClient from the API Spec, after successful generation it should commit the new python client to the PythonClient repository with a commit message that includes the commit hash for which this workflow was triggered.
Something like this:
https://dev.to/moaaz_adel/github-actions-a-simple-way-to-trigger-workflow-from-another-workflow-1b55