This workflow uses actions/checkout@v2 to update some branch when main
receives new updates.
To validade action, we deploy two environments using Netlify, with main
and dev
branches.
Main
https://auto-update-branches-prod.netlify.app/
Dev
https://auto-update-branches-dev.netlify.app/
Always main
branch is updated, a new branch dev
will be genereted, based on main
and pushed it to origin. This way, we guarantee that both environments will be updated, with the same code, automatically.
Let's do it!
First, open a new pull request, changing something in index.html
.
Now, request a review from @eroSilva.
When he approves your pull request, merge it. The both environments should be updated when deploy finished.