Skip tinify if no added or modified files (#92)
This commit is contained in:
parent
4f99f786f5
commit
b2d058ff59
|
@ -37,6 +37,10 @@ jobs:
|
|||
|
||||
- name: Tinify Images
|
||||
run: |
|
||||
if [ -z "${{ steps.changed.outputs.added_modified }}" ]; then
|
||||
echo "No files changed, skipping"
|
||||
exit 0
|
||||
fi
|
||||
python .github/scripts/tinify_images.py \
|
||||
-d images \
|
||||
-ff ${{ steps.changed.outputs.added_modified }} \
|
||||
|
|
Loading…
Reference in New Issue