Created demo notebooks #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Branches | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update-branches: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main branch | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Pull latest changes from main | |
run: git pull origin main | |
- name: Update branches | |
run: | | |
for branch in $(git branch -r | grep -v main); do | |
git checkout ${branch#origin/} | |
git merge main --no-edit | |
git push origin ${branch#origin/} | |
done |