Skip to content

Commit e8fe366

Browse files
gh/actions: copy over stuff from Maple's efforts
1 parent 0d7ff4f commit e8fe366

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/sync.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,39 @@ on:
88
jobs:
99
sync:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- branch: master
16+
remote: https://git.kernel.org/pub/scm/linux/security/vulns.git
17+
remote_branch: master
18+
1119
env:
1220
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
BRANCH: ${{ matrix.branch }}
22+
REMOTE: ${{ matrix.remote }}
23+
REMOTE_BRANCH: ${{ matrix.remote_branch }}
24+
1325
steps:
1426
- name: Install git
1527
run: sudo apt-get install -y git
1628

1729
- name: Check out repository
1830
uses: actions/checkout@v4
31+
with:
32+
ref: ${{ env.BRANCH }}
33+
path: ${{ env.BRANCH }}
1934

2035
- name: Sync kernel-security-vulns
36+
working-directory: ./${{ env.BRANCH }}
2137
run: |
2238
set -xeuf -o pipefail
2339
2440
git config user.name "github-actions[bot]"
2541
git config user.email "github-actions[bot]@users.noreply.github.com"
2642
27-
28-
git remote add upstream https://git.kernel.org/pub/scm/linux/security/vulns.git
43+
git remote add upstream ${REMOTE}
2944
git fetch upstream --tags --quiet
30-
git rebase upstream/master
45+
git rebase upstream/${REMOTE_BRANCH}
3146
git push origin --follow-tags

0 commit comments

Comments
 (0)