-
Notifications
You must be signed in to change notification settings - Fork 5.7k
46 lines (41 loc) · 1.3 KB
/
test.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
44
45
46
name: Clone Paddle2
on:
pull_request:
branches: [ "develop" ]
jobs:
Clone-Paddle2:
name: Clone Paddle2
runs-on: ubuntu-latest
steps:
# - name: Clone paddle2
# uses: actions/checkout@v4
# with:
# submodules: 'recursive'
# - name: Cache bos client
# id: cache_bos_client
# uses: actions/cache@v4
# with:
# path: |
# /home/runner/work/Paddle/bos_upload.py
# ~/.cache/pip
# key: bos_client_pip
# - name: Download bos client
# env:
# WORK: "/home/runner/work/Paddle"
# if: steps.cache_bos_client.outputs.cache-hit != 'true'
# run: |
# cd $WORK
# wget -q --no-proxy -O bos_upload.py https://paddle-docker-tar.cdn.bcebos.com/bos_upload.py --no-check-certificate
- name: Push paddle-action.tar.gz to bos
env:
WORK: "/home/runner/work/Paddle"
AK: ${{ secrets.AK }}
SK: ${{ secrets.SK }}
PR_ID: ${{ github.event.pull_request.number }}
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
run: |
git checkout -b test
cd $WORK
tar -zcf Paddle-action.tar.gz Paddle
python -m pip install bce-python-sdk==0.8.74
python3 bos_upload.py Paddle-action.tar.gz xly-devops/PR/Paddle/${PR_ID}/${COMMIT_ID}