Skip to content

Commit

Permalink
Exclude deleted images from optimize workflow (github#25637)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmari authored Feb 24, 2022
1 parent c52e5a8 commit 2518d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/optimize-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
git checkout $GITHUB_HEAD_REF
echo "List the files that changed"
git diff --name-only $GITHUB_HEAD_REF $GITHUB_BASE_REF
git diff --name-only --diff-filter=d $GITHUB_BASE_REF $GITHUB_HEAD_REF
echo "Run optipng on pngs in from the diff"
git diff --name-only -z $GITHUB_HEAD_REF $GITHUB_BASE_REF -- '*.png' | xargs -0 optipng -nx
Expand Down

0 comments on commit 2518d50

Please sign in to comment.