diff --git a/.github/actions/upload-assets-action/action.yml b/.github/actions/upload-assets-action/action.yml index f7c203547..68f5be74e 100644 --- a/.github/actions/upload-assets-action/action.yml +++ b/.github/actions/upload-assets-action/action.yml @@ -18,8 +18,8 @@ runs: j=0 if [ -d ${{ inputs.asset-path }} ]; then for filename in `ls ${{ inputs.asset-path }}`; do - folder_list[j]=${{ inputs.asset-path }}/$filename - j=`expr $j + 1` + folder_list[j]=${{ inputs.asset-path }}/$filename + j=`expr $j + 1` done else folder_list[0]=${{ inputs.asset-path }} diff --git a/.github/actions/upload-to-oss-action/action.yml b/.github/actions/upload-to-oss-action/action.yml index 2d700fead..0d8bc5cc2 100644 --- a/.github/actions/upload-to-oss-action/action.yml +++ b/.github/actions/upload-to-oss-action/action.yml @@ -32,8 +32,8 @@ runs: j=0 if [ -d ${{ inputs.asset-path }} ]; then for filename in `ls ${{ inputs.asset-path }}`; do - folder_list[j]=${{ inputs.asset-path }}/$filename - j=`expr $j + 1` + folder_list[j]=${{ inputs.asset-path }}/$filename + j=`expr $j + 1` done else folder_list[0]=${{ inputs.asset-path }} @@ -41,9 +41,9 @@ runs: echo "Uploading to oss... " for filepath in ${folder_list[@]}; do - ossutil64 -e ${{ inputs.endpoint}} \ - -i ${{ inputs.key-id }} \ - -k ${{ inputs.key-secret }} \ - -f cp $filepath oss://${{ inputs.bucket }}/${{ inputs.target-path }}/$(basename ${filepath}) + ossutil64 -e ${{ inputs.endpoint}} \ + -i ${{ inputs.key-id }} \ + -k ${{ inputs.key-secret }} \ + -f cp $filepath oss://${{ inputs.bucket }}/${{ inputs.target-path }}/$(basename ${filepath}) done shell: bash