File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 88jobs :
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
You can’t perform that action at this time.
0 commit comments