Skip to content

Commit

Permalink
Use github-mirror-action@v3
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-mnemonic committed Jan 4, 2024
1 parent ca4d9b8 commit b84b767
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'mirror'
name: 'mirror and test'
on:
push:
branches:
Expand All @@ -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

0 comments on commit b84b767

Please sign in to comment.