Skip to content

Commit 53b6fa6

Browse files
committed
feat: reemplazar el commit y push de cambios por la creación de un Pull Request para actualizar la tabla de comparación de tamaños de imágenes Docker
1 parent 7d77689 commit 53b6fa6

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/build-and-compare.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,20 @@ jobs:
239239
240240
echo "README updated!"
241241
242-
- name: Commit and push changes
242+
- name: Create Pull Request with changes
243243
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
244-
run: |
245-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
246-
git config --local user.name "github-actions[bot]"
247-
git add README.md
248-
if git diff --staged --quiet; then
249-
echo "No changes to commit"
250-
else
251-
git commit -m "📊 Update Docker image size comparison table"
252-
git push
253-
fi
244+
uses: peter-evans/create-pull-request@v6
245+
with:
246+
token: ${{ secrets.GITHUB_TOKEN }}
247+
commit-message: "📊 Update Docker image size comparison table"
248+
title: "📊 Update Docker image size comparison table"
249+
body: |
250+
This PR updates the Docker image size comparison table in the README.
251+
252+
The table shows the size difference between optimized Dockerfiles and their `.old` counterparts.
253+
254+
---
255+
_This PR was automatically generated by GitHub Actions._
256+
branch: update-docker-sizes
257+
delete-branch: true
258+
base: main

0 commit comments

Comments
 (0)