Skip to content

Commit

Permalink
ajuste de action
Browse files Browse the repository at this point in the history
  • Loading branch information
ecsistem committed Aug 26, 2023
1 parent 428233a commit a3e2937
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ImageOptimization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: Image Optimization

on:
workflow_dispatch:

inputs:
target-branch:
description: 'Target Branch for Commit'
required: true
default: 'developer'

jobs:
optimize-images:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,9 +38,12 @@ jobs:
find . -type f -name "*.jpg" -exec jpegoptim {} \;
find . -type f -name "*.svg" -exec svgo {} \;
- name: Commit and Push Changes
- name: Add Changes
run: git add .

- name: Commit Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "Image Optimization🧹"
git commit -m "Optimize images"
git push origin developer
git push origin ${{ github.event.inputs.target-branch }}

0 comments on commit a3e2937

Please sign in to comment.