Skip to content

Commit df9c6df

Browse files
Create PR-CI-Clone.yml
test ci
1 parent ac095f5 commit df9c6df

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/PR-CI-Clone.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Clone
5+
6+
on:
7+
pull_request:
8+
branches: [ "develop" ]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
Clone:
15+
# Don't run on forked repos.
16+
if: github.repository_owner == 'PaddlePaddle'
17+
runs-on: ubuntu-latest
18+
env:
19+
PR_ID: ${{ github.event.pull_request.number }}
20+
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
21+
BRANCH: master
22+
steps:
23+
- name: Clone paddle
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: 'recursive'
27+
fetch-depth: 1000
28+
29+
30+
- name: Download bos client
31+
env:
32+
WORK: "/home/runner/work/PaddleNLP"
33+
if: steps.cache_bos_client.outputs.cache-hit != 'true'
34+
run: |
35+
cd $WORK
36+
wget -q --no-proxy -O bos_upload.py https://paddle-docker-tar.cdn.bcebos.com/bos_upload.py --no-check-certificate
37+
- name: Push paddle-action.tar.gz to bos
38+
env:
39+
WORK: "/home/runner/work/PaddleNLP"
40+
AK: ${{ secrets.AK }}
41+
SK: ${{ secrets.SK }}
42+
run: |
43+
cd $WORK
44+
tar -zcf Paddle-action.tar.gz PaddleNLP
45+
python -m pip install bce-python-sdk==0.8.74
46+
python bos_upload.py Paddle-action.tar.gz xly-devops/PR/Paddle/${PR_ID}/${COMMIT_ID}

0 commit comments

Comments
 (0)