Skip to content

Commit

Permalink
fix workflow scripts bug (#2912)
Browse files Browse the repository at this point in the history
* rename run-name

* fix bug
  • Loading branch information
XieYunshen authored Aug 5, 2024
1 parent 5fee858 commit fe455d0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/source_sync.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: source code sync to bos
run-name: ${{ github.actor }} is learning GitHub Actions
run-name: Source code synchronization
on: [push]
jobs:
test_bos:
upload_bos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 20
- uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
Expand All @@ -17,8 +19,9 @@ jobs:
run: |
ls -l
pwd
tar -zcf PaddleTest.tar.gz ../PaddleTest
cd ../
tar -zcf PaddleTest.tar.gz ./PaddleTest
python -m pip install bce-python-sdk==0.8.74
BRANCH_NAME=${GITHUB_REF#refs/heads/}
echo "Branch Name: $BRANCH_NAME"
python tools/bos_upload.py PaddleTest.tar.gz xly-devops/PaddleTest
python ./PaddleTest/tools/bos_upload.py PaddleTest.tar.gz xly-devops/PaddleTest

0 comments on commit fe455d0

Please sign in to comment.