Skip to content

Commit

Permalink
Reconfigure github-sync to sync specific branches only
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-mnemonic committed Dec 31, 2023
1 parent d155d11 commit 7b9a6a7
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

jobs:
repo-sync:
master:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -14,6 +14,32 @@ jobs:
uses: repo-sync/github-sync@v2
with:
source_repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git"
source_branch: "*"
destination_branch: "*"
source_branch: "master"
destination_branch: "master"
github_token: ${{ secrets.PAT }}
linux-6.6.y:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: repo-sync
uses: repo-sync/github-sync@v2
with:
source_repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git"
source_branch: "linux-6.6.y"
destination_branch: "linux-6.6.y"
github_token: ${{ secrets.PAT }}
linux-6.1.y:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: repo-sync
uses: repo-sync/github-sync@v2
with:
source_repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git"
source_branch: "linux-6.1.y"
destination_branch: "linux-6.1.y"
github_token: ${{ secrets.PAT }}

0 comments on commit 7b9a6a7

Please sign in to comment.