Skip to content

Commit

Permalink
Update sync-repo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ioworker0 authored Mar 18, 2024
1 parent 3a29959 commit 390bc96
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/sync-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
- name: pull-push-mm-unstable
run: |
cd linux
git checkout -b mm-unstable-local kernel/mm-unstable
git push -f origin mm-unstable-local:mm-unstable
git fetch kernel mm-unstable
git push -f origin kernel/mm-unstable:mm-unstable
- uses: actions/checkout@v4
with:
Expand All @@ -40,30 +40,28 @@ jobs:
- name: pull-push-mm-stable
run: |
cd linux
git checkout -b mm-stable-local kernel/mm-stable
git push -f origin mm-stable-local:mm-stable
git fetch kernel mm-stable
git push -f origin kernel/mm-stable:mm-unstable
- uses: actions/checkout@v4
with:
ref: master
path: linux

- name: pull-master
- name: pull-push-master
run: |
cp linux/.github/workflows/sync-repo.yml .
cd linux
git checkout -b master-local kernel/master
- uses: actions/checkout@v4
with:
ref: master-local
path: linux
cd linux
git fetch kernel master
git push -f origin kernel/master:master
- name: pull-push-master
run: |
cd ..
git pull git@github.com:ioworker0/linux.git linux1
cd linux1
mkdir -p .github/workflows
cp ../sync-repo.yml .github/workflows/sync-repo.yml
git add .github/workflows/sync-repo.yml
git commit -m "[AUTO-COMMIT] AUTO SYNC KERNEL REPO" .github/workflows/sync-repo.yml
git push -f origin master-local:master
git push origin master

0 comments on commit 390bc96

Please sign in to comment.