Merge pull request #7 from unified-defi/main #1
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: Resize Images | |
on: | |
push: | |
paths: | |
- "fantom/tokens/*" | |
jobs: | |
resize-images: | |
runs-on: ubuntu-latest | |
# runs-on: self-hosted | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Resize images | |
uses: ./.github/actions/image-resizer | |
with: | |
path: "fantom/tokens/" | |
size: "128x128" | |
subfolder_name: "128x128" | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "0xZod" | |
- name: Commit resized images | |
run: | | |
git add fantom/tokens/128x128/ | |
git commit -m "Add resized images" || echo "No changes to commit" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |