Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
format the code
Browse files Browse the repository at this point in the history
  • Loading branch information
jievince committed Mar 25, 2021
1 parent f18f65c commit 5139fcf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/actions/upload-assets-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/upload-to-oss-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ 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 }}
fi
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

0 comments on commit 5139fcf

Please sign in to comment.