Skip to content

eroSilva/auto-update-branchs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Action to auto update branches

This workflow uses actions/checkout@v2 to update some branch when main receives new updates.

How it works?

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.

Nice! I wanna test it. How can I do it?

Let's do it!

First, open a new pull request, changing something in index.html. image

Now, request a review from @eroSilva.

When he approves your pull request, merge it. The both environments should be updated when deploy finished.

Screen-Recording-2021-05-03-at-15 32 33

About

Spike to update branchs, automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages