Skip to content

Commit

Permalink
fix8 jpg2webp workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
codeblech committed Aug 26, 2024
1 parent 0e17002 commit 3b5c81d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/jpg2webp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3b5c81d

Please sign in to comment.