diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index d18544ac91d95..c6437a0a51eb1 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,4 +1,4 @@ -name: 'mirror' +name: 'mirror and test' on: push: branches: @@ -9,13 +9,33 @@ on: workflow_dispatch: jobs: - mirror: + #mirror: + # runs-on: ubuntu-latest + # name: mirror + # steps: + # - name: mirror + # id: mirror + # uses: bridgelightcloud/github-mirror-action@v3 + # with: + # origin: 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git' + # GITHUB_TOKEN: ${{ secrets.PAT }} + + build_matrix: runs-on: ubuntu-latest - name: mirror + strategy: + matrix: + branch: ['linux-6.1.y', 'linux-5.15.y' ] + steps: - - name: mirror - id: mirror - uses: bridgelightcloud/github-mirror-action@v2 + - uses: actions/checkout@v3 with: - origin: 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git' - GITHUB_TOKEN: ${{ secrets.PAT }} + ref: ${{ matrix.branch }} + + - name: build + run: | + pwd + if git log --oneline | grep "Linux\ .*\-rc.*"; then + echo "build" + else + echo "nobuild" + fi