Skip to content

Commit

Permalink
update github action - diff-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
peteski22 committed Nov 18, 2024
1 parent 884d4bb commit cd127ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_images_uv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
- name: Check modified paths
id: modified-paths
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.event.pull_request.head.sha }} | grep -E '^lumigator/|^\.github/'; then
echo "Changes detected. Rebuilding image..."
if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | xargs | grep -E '^lumigator/|^\.github/'; then
echo "Changes detected, image rebuild required..."
is_image_build_required=true
else
echo "No relevant changes detected."
echo "No relevant changes detected, image rebuild not required."
is_image_build_required=false
fi
echo "is_image_build_required=$is_image_build_required" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit cd127ea

Please sign in to comment.