-
Notifications
You must be signed in to change notification settings - Fork 5.6k
43 lines (36 loc) · 1.12 KB
/
clone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: cccccclone
on:
pull_request:
branches: [ "develop" ]
jobs:
clone:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
# - name: Modify branch name
# run: |
# git branch -m test
# - name: tar Paddle
# runs:|
# tar --exclude=Paddle.tar.gz -zcf Paddle.tar.gz .
# - name: Download BOS client
# run: |
# set +x
# wget -q --no-proxy -O bce_whl.tar.gz https://paddle-docker-tar.bj.bcebos.com/home/bce_whl.tar.gz --no-check-certificate
# set -x
# tar xf bce_whl.tar.gz
# echo "bos_client=bce-python-sdk-0.8.27/BosClient.py" >> $GITHUB_ENV
# - name: Push to BOS
# env:
# PR_ID: ${{ github.event.pull_request.number }}
# COMMIT_ID: ${{ github.event.pull_request.head.sha }}
# run: |
# python3 ${{ env.bos_client }} Paddle.tar.gz xly-devops/PR/Paddle/${PR_ID}/${COMMIT_ID}
# - name: Upload Paddle artifact
# uses: actions/upload-artifact@v3
# with:
# name: Paddle
# path: Paddle.tar.gz