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 ecbfa7d
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 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,29 @@ 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 }}

linux-6_1_y:
#needs: mirror
runs-on: ubuntu-latest
name: mirror
steps:
- name: mirror
id: mirror
uses: bridgelightcloud/github-mirror-action@v2
- name: linux-6_1_y
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: linux-6.1.y
run: |
pwd
if [ git log --oneline | grep "Linux\ .*\-rc.*" ]; then
echo "build"
else
echo "nobuild"
fi

0 comments on commit ecbfa7d

Please sign in to comment.