Skip to content

Commit

Permalink
chore(ci): check non-empty folder
Browse files Browse the repository at this point in the history
  • Loading branch information
stu43005 committed Nov 27, 2023
1 parent 1590687 commit d510f86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/assetbundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ jobs:

- name: Upload to S3
run: |
s3cmd put -r data/assetbundle/upload/* s3://sdorica-wiki/
if [ -d "data/assetbundle/upload" ] && [ -n "$(ls -A "data/assetbundle/upload")" ]; then
s3cmd put -r data/assetbundle/upload/* s3://sdorica-wiki/
fi
# - uses: shallwefootball/[email protected]
# with:
Expand Down

0 comments on commit d510f86

Please sign in to comment.