diff --git a/.github/workflows/ClinicalObservations.yml b/.github/workflows/ClinicalObservations.yml index 1defe7633..c080700ed 100644 --- a/.github/workflows/ClinicalObservations.yml +++ b/.github/workflows/ClinicalObservations.yml @@ -37,12 +37,13 @@ jobs: run: sleep $((RANDOM % 1))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds - name: Check for changes #If no changes found then exit action, otherwise pass - run: if git diff --exit-code; then - echo "No changes detected" - exit 0 - else - "Changes detected" - fi + run: | + if git diff --exit-code; then + echo "No changes detected" + exit 0 + else + "Changes detected" + fi - name: Create branch and commit run: |