Merge branch 'main' of https://github.com/daisyui/images #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Convert Images to WebP | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
convert-images: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup bun | |
uses: oven-sh/[email protected] | |
- name: Install dependencies | |
run: cd .github/workflows && bun install | |
- name: Convert images to WebP | |
run: cd .github/workflows && bun convert-to-webp.js | |
- name: Configure Git | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Pouya Saadeghi" | |
- name: Commit changes | |
run: | | |
git add . | |
git diff-index --quiet HEAD || git commit -m "Convert images to WebP" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |