From 047edcaf54d50b1816400f3389799d4a6f1a6234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignacio=20Esp=C3=B3sito?= Date: Mon, 30 Mar 2026 13:10:53 +0200 Subject: [PATCH] fix: fix pipeline --- .github/workflows/upload-images.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload-images.yml b/.github/workflows/upload-images.yml index 73076dd..2c0c236 100644 --- a/.github/workflows/upload-images.yml +++ b/.github/workflows/upload-images.yml @@ -17,10 +17,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Get changed image files + - name: Get newly added image files from PR id: changed run: | - FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E '\.(png|jpg|jpeg|webp)$' || true) + git fetch origin ${{ github.event.pull_request.base.ref }} + + FILES=$(git diff --name-status origin/${{ github.event.pull_request.base.ref }} ${{ github.sha }} \ + | grep '^A' \ + | awk '{print $2}' \ + | grep -Ei '\.(png|jpg|jpeg|webp)$' || true) + + echo "FILES FOUND:" + echo "$FILES" + echo "files<> $GITHUB_OUTPUT echo "$FILES" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT