diff --git a/.github/workflows/jpg2webp.yml b/.github/workflows/jpg2webp.yml index 80d92228..b2d3b66a 100644 --- a/.github/workflows/jpg2webp.yml +++ b/.github/workflows/jpg2webp.yml @@ -27,7 +27,7 @@ jobs: uses: actions/checkout@v4 - name: convert - run: find ./images/osdcjiit/ -type f -name "*.jpg" -exec sh -c 'cwebp -q 80 "$1" -o "${1%.jpg}.webp" && rm "$1"' _ {} \; + run: find . -type f -name "*.jpg" -exec sh -c 'cwebp -q 80 "$1" -o "${1%.jpg}.webp" && rm "$1"' _ {} \; - name: update index.json run: python index.py @@ -36,7 +36,7 @@ jobs: run: | git config --global user.name 'github-actions[bot]' git config --global user.email '3github-actions[bot]@users.noreply.github.com' - git add ./images/osdcjiit/*.webp + git add *.webp git add index.json git commit -m "chore: jpg2webp - $(date)" git push