From ada12915c5b98b89102462b1105d9cbd77baa5d6 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sun, 19 Nov 2023 16:02:06 +0100 Subject: [PATCH] Fix YAML --- .github/workflows/workflow.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index cfdd5c5..f885836 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -18,10 +18,13 @@ jobs: uses: tj-actions/changed-files@v40.1.1 - name: Print changed files count - run: echo "Changed files count: ${{ steps.changed-files.outputs.all_changed_and_modified_files_count }}" + run: > + echo "Changed files count: ${{ + steps.changed-files.outputs.all_changed_and_modified_files_count }}" - name: Fail if less than 2 changes detected - run: exit $(( ${{ steps.changed-files.outputs.all_changed_and_modified_files_count }} < 2 )) + if: steps.changed-files.outputs.all_changed_and_modified_files_count < 2 + run: exit 1 build: needs: check-changes