Skip to content

Commit c5cfe5f

Browse files
committed
ci: restore actions/checkout for private clone
1 parent e92cf52 commit c5cfe5f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ jobs:
3535
uses: actions/checkout@v4
3636

3737
- name: Clone private source
38-
run: |
39-
git clone --depth 1 --branch slice-linux-kernel \
40-
"https://x-access-token:${{ secrets.PRIVATE_SOURCE_TOKEN }}@github.com/yijunyu/precc.git" \
41-
precc-src
38+
uses: actions/checkout@v4
39+
with:
40+
repository: yijunyu/precc
41+
ref: slice-linux-kernel
42+
token: ${{ secrets.PRIVATE_SOURCE_TOKEN }}
43+
path: precc-src
44+
fetch-depth: 1
4245

4346
- name: Install system dependencies (Linux)
4447
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)