From b886ac5e815c2a1178dc324c21b0da41c5f82274 Mon Sep 17 00:00:00 2001 From: Johnny Mnemonic Date: Mon, 1 Jan 2024 00:17:55 +0100 Subject: [PATCH] Use github-mirror-action@v3 --- .github/workflows/mirror.yml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index d18544ac91d95..caf7e593c4484 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