diff --git a/.github/workflows/compare-snapshots.yml b/.github/workflows/compare-snapshots.yml index caceb3123b..433988f9bb 100644 --- a/.github/workflows/compare-snapshots.yml +++ b/.github/workflows/compare-snapshots.yml @@ -45,7 +45,7 @@ jobs: - name: Normalise execution time based changes shell: bash run: | - changed_execution_time=${git diff --quiet -S "complete after 0s" -- testing/equivalence-tests/outputs || echo true) + changed_execution_time=$(git diff --quiet -S "complete after 0s" -- testing/equivalence-tests/outputs || echo true) if [[ $changed == "true" ]]; then echo "Found changes in the execution times in the result outputs. Defaulting the execution times to 0" find testing/equivalence-tests/outputs -type f -name "apply.json" -exec sed -E -i 's/complete after [0-9]+s/complete after 0s/g' {} +