-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix code sync bug (#3017) * 代码同步支持commit指定 * fix PaddleQACheckout 1.1 use bug fix actions bug (#3018) fix actions bug 增加单文件代码同步
- Loading branch information
1 parent
0c68175
commit 6882da3
Showing
2 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: tools file sync to bos | ||
run-name: Tools file synchronization | ||
on: | ||
push: | ||
paths: | ||
- 'tools/bos_upload.py' | ||
- 'tools/linux_env_info.sh' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
upload_bos: | ||
if: ${{ !github.event.repository.fork }} | ||
environment: CodeSync | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PaddleTest Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: | | ||
tools | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Upload Code | ||
env: | ||
AK: ${{ secrets.BOS_AK }} | ||
SK: ${{ secrets.BOS_SK }} | ||
run: | | ||
tree -L 3 | ||
echo "Repository: ${{ github.repository }}" | ||
echo "Branch: ${{ github.ref }}" | ||
python -m pip install bce-python-sdk==0.8.74 | ||
branch=$(echo '${{ github.ref }}' | sed 's#refs/heads/##') | ||
python tools/bos_upload.py tools/bos_upload.py paddle-qa/CodeSync/${branch}/${{ github.repository }} | ||
python tools/bos_upload.py tools/linux_env_info.sh paddle-qa/CodeSync/${branch}/${{ github.repository }} | ||