From 931c056aded5a2585c18b0660414eb06d749aa16 Mon Sep 17 00:00:00 2001 From: kosenda Date: Wed, 20 Mar 2024 15:46:59 +0900 Subject: [PATCH] fix: push companion branch --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d5f0a555..173d1e36 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -291,14 +291,14 @@ jobs: git push origin --delete companion_$BASE_BRANCH_NAME || true git checkout -b companion_$BASE_BRANCH_NAME + git rm --cached -r . - # delete except *_compare.png and .git - find ./app/build/outputs/roborazzi -type f | grep -v -e '.*_compare.png' | xargs rm -rf - ls -A | grep -v -E './app/build/outputs/roborazzi/*' | grep -v -x '.git' | xargs rm -rf - - git add -A + add_files=$(find . -type f -path "./app/build/outputs/roborazzi/*" -name "*_compare.png") + for file in $add_files; do + git add $file + done + git commit -m "Add screenshot diff" - git push origin HEAD:companion_$BASE_BRANCH_NAME -f fi