You've already forked linux-t2-patches
mirror of
https://github.com/t2linux/linux-t2-patches.git
synced 2026-04-30 13:52:11 -07:00
Add optional fork input to GitHub Actions workflow
This commit is contained in:
@@ -7,7 +7,9 @@ on:
|
|||||||
commit_message:
|
commit_message:
|
||||||
description: 'Commit message'
|
description: 'Commit message'
|
||||||
required: false
|
required: false
|
||||||
|
fork:
|
||||||
|
description: 'Link to any fork if needed'
|
||||||
|
required: false
|
||||||
jobs:
|
jobs:
|
||||||
Publish-Mainline:
|
Publish-Mainline:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -25,8 +27,12 @@ jobs:
|
|||||||
source ${{ github.workspace }}/version
|
source ${{ github.workspace }}/version
|
||||||
echo "kver=${KVER}" >> $GITHUB_ENV
|
echo "kver=${KVER}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
FORK="${{ github.event.inputs.fork }}"
|
||||||
|
if [ -z "$FORK" ]; then
|
||||||
|
FORK='https://github.com/t2linux/apple-bce-drv.git'
|
||||||
|
fi
|
||||||
git clone --depth 1 --single-branch --branch "v${KVER}" https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
|
git clone --depth 1 --single-branch --branch "v${KVER}" https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
|
||||||
git clone --depth 1 https://github.com/t2linux/apple-bce-drv.git ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce
|
git clone --depth 1 $FORK ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce
|
||||||
rm -rf ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/.git
|
rm -rf ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/.git
|
||||||
rm ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/.gitignore
|
rm ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/.gitignore
|
||||||
rm ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/README.md
|
rm ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/README.md
|
||||||
@@ -105,8 +111,12 @@ jobs:
|
|||||||
source ${{ github.workspace }}/version
|
source ${{ github.workspace }}/version
|
||||||
echo "kver=${KVER}" >> $GITHUB_ENV
|
echo "kver=${KVER}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
FORK="${{ github.event.inputs.fork }}"
|
||||||
|
if [ -z "$FORK" ]; then
|
||||||
|
FORK='https://github.com/t2linux/apple-bce-drv.git'
|
||||||
|
fi
|
||||||
git clone --depth 1 --single-branch --branch "v${KVER}" https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
|
git clone --depth 1 --single-branch --branch "v${KVER}" https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
|
||||||
git clone --depth 1 https://github.com/t2linux/apple-bce-drv.git ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce
|
git clone --depth 1 $FORK ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce
|
||||||
rm -rf ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/.git
|
rm -rf ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/.git
|
||||||
rm ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/.gitignore
|
rm ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/.gitignore
|
||||||
rm ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/README.md
|
rm ${{ github.workspace }}/linux-stable/drivers/staging/apple-bce/README.md
|
||||||
|
|||||||
Reference in New Issue
Block a user