diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 617b73385..ef3650403 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -128,7 +128,7 @@ jobs: - name: Commit and push recordings run: | - if ! git status --porcelain tests/integration/recordings/ | grep -q .; then + if [[ -n $(git status --porcelain tests/integration/recordings/) ]]; then echo "New recordings detected, committing and pushing" git add tests/integration/recordings/ git commit -m "Update recordings" diff --git a/.github/workflows/integration-vision-tests.yml b/.github/workflows/integration-vision-tests.yml index 6aab0852a..c3df32fa6 100644 --- a/.github/workflows/integration-vision-tests.yml +++ b/.github/workflows/integration-vision-tests.yml @@ -112,7 +112,7 @@ jobs: git status --porcelain tests/integration/recordings/ git status - if ! git status --porcelain tests/integration/recordings/ | grep -q .; then + if [[ -n $(git status --porcelain tests/integration/recordings/) ]]; then echo "New recordings detected, committing and pushing" git add tests/integration/recordings/ git commit -m "Update recordings"