Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
ci: remove images: Do not give branch name on first log --stat
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
  • Loading branch information
pdxjohnny committed Mar 12, 2022
1 parent a3921c6 commit 8ad17e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/remove_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ jobs:
git fetch origin $BRANCH
git reset --hard origin/$BRANCH
git log -n 3 --oneline
git log --stat $BRANCH | grep -E '\.png|\.jpeg|\.jpg|\.gif'
git log --stat | grep -E '\.png|\.jpeg|\.jpg|\.gif'
cat > $GIT_FILTER_REPO_PATHS <<'EOF'
glob:*.gif
glob:*.png
glob:*.jpg
glob:*.jpeg
EOF
git filter-repo --force --invert-paths --paths-from-file $GIT_FILTER_REPO_PATHS
set +e
git log --stat | grep -E '\.png|\.jpeg|\.jpg|\.gif'
set -e
export GIT_SSH_COMMAND='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
Expand Down

0 comments on commit 8ad17e9

Please sign in to comment.