Fix CI git diff

pull/4576/head
Reinier van der Leer 2023-06-04 02:11:32 +02:00
parent 4c11b21dff
commit 3e5868f223
No known key found for this signature in database
GPG Key ID: 64035FE419545762
1 changed files with 2 additions and 2 deletions

View File

@ -177,10 +177,10 @@ jobs:
fi
cd tests/Auto-GPT-test-cassettes
git fetch origin $cassette_source_branch
git fetch origin $cassette_source_branch:$cassette_source_branch
# Commit & push changes to cassettes if any
if ! git diff-index --quiet $cassette_source_branch; then
if ! git diff-index --quiet $cassette_source_branch --; then
if ! [ "$cassette_branch" = "$cassette_source_branch" ]; then
git checkout -b $cassette_branch
fi