tylermilner / cookiecutter-ios-swiftui

Cookiecutter template for jump-starting modern iOS apps using SwiftUI.
MIT License
1 stars 0 forks source link

Skip deployment to output repo if no iOS template code changes #22

Closed tylermilner closed 6 months ago

tylermilner commented 7 months ago

Don't deploy to tylermilner/cookiecutter-ios-swiftui-output if no iOS template code has actually changed (e.g. files inside of the {{ cookiecutter.project_root }} directory).

Also add a way to override the skipped deployment manually. I'm not sure if there's an easy way to do this. We may need to have a way to set a variable from the GitHub UI that can be incorporated into the deploy job's condition logic.

tylermilner commented 7 months ago

Implemented a changes job that will look for changes in the {{ cookiecutter.project_root }} directory and is used by the deploy job to only deploy to the output repo if changes were found.

Still need to implement a way to manually deploy the generated template artifact to the output repo.

tylermilner commented 6 months ago

The "Test" workflow has been refactored into a "Test" and "Deploy" workflow, with the "Deploy" workflow triggered by, and dependent on, the successful run of the "Test" workflow.

Also added manual workflow_dispatch trigger with run-id input in 3373a24a3efb7c757e7edda15248a1ec19877490, with supporting commits 645c670b9a0e7b70e6336111a19d2565b8606b7a and 0961f300d259975ee5e1d35e9eb100d0d8710ee9.