Skip to content

Commit 51f837e

Browse files
committed
Support local manifest file using raw text links
1 parent c52a1bf commit 51f837e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/actions/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,13 @@ runs:
124124
125125
# Initialize and sync kernel source
126126
echo "Initializing and syncing kernel source..."
127-
$REPO init -u https://github.com/OnePlusOSS/kernel_manifest.git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1 --no-clone-bundle --no-tags
127+
if [[ "${{ inputs.manifest }}" == https://* ]]; then
128+
mkdir -p .repo/manifests
129+
curl -Ls ${{ inputs.manifest }} -o .repo/manifests/temp_manifest.xml
130+
$REPO init -u https://github.com/OnePlusOSS/kernel_manifest.git -b oneplus/sm8650 -m temp_manifest.xml --repo-rev=v2.16 --depth=1 --no-clone-bundle --no-tags
131+
else
132+
$REPO init -u https://github.com/OnePlusOSS/kernel_manifest.git -b ${{ inputs.branch }} -m ${{ inputs.manifest }} --repo-rev=v2.16 --depth=1 --no-clone-bundle --no-tags
133+
fi
128134
129135
# Sync repo and apply patches
130136
$REPO --version

0 commit comments

Comments
 (0)