Skip to content

[CI] add py3 sot ci yaml #2

[CI] add py3 sot ci yaml

[CI] add py3 sot ci yaml #2

Workflow file for this run

name: Clone-linux
on:
workflow_call:
inputs:
PR_ID:
description: 'PR number'
required: true
type: string
COMMIT_ID:
description: 'commit number'
required: true
type: string
permissions: read-all
env:
PR_ID: ${{ inputs.PR_ID }}
COMMIT_ID: ${{ inputs.COMMIT_ID }}
jobs:
Clone:
# Don't run on forked repos.
if: github.repository_owner == 'PaddlePaddle'
runs-on:
group: HK-Clone
steps:
- name: Clone paddle
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
submodules: 'recursive'
fetch-depth: 1000
- name: Merge PR to test branch
run: |
git checkout -b test
git config --global user.name "PaddleCI"
git config --global user.email "paddle_ci@example.com"
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr
git merge --no-ff pr
git branch -d pr

Check failure on line 44 in .github/workflows/_Clone-linux.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/_Clone-linux.yml

Invalid workflow file

You have an error in your yaml syntax on line 44
- name: Download bos client
env:
bos_file: "/home/paddle/actions-runner/bos_upload.py"
run: |
if [ ! -f "${bos_file}" ]; then
# wget -q --no-proxy -O ${bos_file} https://paddle-docker-tar.cdn.bcebos.com/bos_upload.py --no-check-certificate
wget -q --no-proxy -O /home/paddle/actions-runner/bce_whl.tar.gz https://paddle-docker-tar.bj.bcebos.com/home/bce_whl.tar.gz --no-check-certificate
tar xf /home/bce_whl.tar.gz -C ${bos_file}
fi
- name: Push paddle-action.tar.gz to bos
env:
AK: 123
SK: 123
# AK: ${{ vars.AK }}
# SK: ${{ vars.SK }}
bos_file: "/home/paddle/actions-runner/bos_upload.py"
run: |
cd ..
tar -zcf Paddle.tar.gz Paddle
python -m pip install bce-python-sdk==0.8.74
python ${bos_file} Paddle.tar.gz paddle-github-action/PR/Paddle/${PR_ID}/${COMMIT_ID}
cd -
git checkout develop
git branch -D test
# - name: Clean environment
# if: always()
# run: |
# rm -rf ${{ github.workspace }}/*