From 32374ed7e2066bbadfea9f3e18d1a5cec971163f Mon Sep 17 00:00:00 2001 From: Gu Shiwei Date: Tue, 24 Dec 2024 19:00:36 -0800 Subject: [PATCH] [CI] clone paddle (#70415) * Add clone pipeline in action * env var * add push event add push event * Update PR-CI-Clone.yml * branch name * modify workflow name * 1 * 2 * 3 * all * fix modify branch name * fix tar * pip install protocol * 5 * pip * PATH * PATH * Update PR-CI-Clone.yml * Update PR-CI-Clone.yml * 2 * 12.24_1 * 12.24_2 * 12.24_3 * 12.24_4 * 12.24_5 * 12.24_6 * 24.24_7 * 24.24_8 * 24.24_9 * 24.24_10 * 12.24_11 * 12.24_12 * 12.24_13 * 24_1 * Update PR-CI-Clone.yml * Update PR-CI-Clone.yml * Update PR-CI-Clone.yml * f * n_1 * n_2 * n_3 * n_4 * n_5 * n_7 * n_8 * n_9 * n_10 * n_11 * text=document_fix * test=document_fix * test=document_fix * test=document_fix * test=document_fix --------- Co-authored-by: risemeup1 <62429225+risemeup1@users.noreply.github.com> --- .github/workflows/PR-CI-Clone.yml | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/PR-CI-Clone.yml diff --git a/.github/workflows/PR-CI-Clone.yml b/.github/workflows/PR-CI-Clone.yml new file mode 100644 index 00000000000000..e34ce7c431680b --- /dev/null +++ b/.github/workflows/PR-CI-Clone.yml @@ -0,0 +1,47 @@ +name: Clone + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + Clone: + runs-on: ubuntu-latest + steps: + - name: Clone paddle + 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}