Update sync-repo.yml #13
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: SYNC REPO | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: mm-unstable | |
- name: add-kernel-remote | |
run: git remote add kernel git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm | |
- name: show-remote | |
run: git remote -v | |
- uses: actions/checkout@v4 | |
with: | |
ref: mm-stable | |
- name: remove-local-mm-unstable | |
run: git branch -d mm-unstable | |
- name: pull-kernel-mm-unstable | |
run: git pull kernel mm-unstable:mm-unstable | |
- name: push-mm-unstable | |
run: git push -f origin mm-unstable:mm-unstable | |