Skip to content

Commit 67e3673

Browse files
author
root
committed
fix ci build ops whl bug
1 parent 87bb9ef commit 67e3673

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/_clone_linux.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
name: PaddleFormers Code Clone
22
description: "PaddleFormers clone and upload"
3-
43
on:
54
workflow_call:
65
inputs:
7-
bos_dir:
8-
type: string
9-
required: false
10-
default: 'PaddleFormers'
6+
bos_dir:
7+
type: string
8+
required: false
9+
default: 'PaddleFormers'
1110
outputs:
1211
repo_archive_url:
1312
description: "Compressed source code archive."
@@ -22,12 +21,9 @@ jobs:
2221
- name: Clone PaddleFormers
2322
uses: actions/checkout@v4
2423
with:
25-
ref: ${{ github.event_name == 'pull_request'
26-
&& github.event.pull_request.base.ref
27-
|| github.ref_name }}
24+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
2825
submodules: 'recursive'
2926
fetch-depth: 1000
30-
3127
- name: Merge PR (if needed)
3228
if: ${{ github.event_name == 'pull_request' }}
3329
run: |
@@ -38,6 +34,10 @@ jobs:
3834
git merge --no-ff pr/${{ github.event.pull_request.number }}
3935
echo "PR Branch log "
4036
git log --oneline -n 5 pr/${{ github.event.pull_request.number }}
37+
- name: Init submodules
38+
run: |
39+
git submodule sync --recursive
40+
git submodule update --init --recursive
4141
- uses: actions/setup-python@v5
4242
with:
4343
python-version: '3.10'

0 commit comments

Comments
 (0)