Skip to content

[CI]refine clone ci

[CI]refine clone ci #2

Workflow file for this run

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}