diff --git a/.github/workflows/no-important-files-changed.yml b/.github/workflows/no-important-files-changed.yml index 82f609155..7284380f8 100644 --- a/.github/workflows/no-important-files-changed.yml +++ b/.github/workflows/no-important-files-changed.yml @@ -22,6 +22,7 @@ jobs: env: TARGET_BRANCH: ${{ github.base_ref }} run: | + set -x for changed_file in $(git diff --name-only $TARGET_BRANCH); do if ! echo "$changed_file" | grep --quiet --extended-regexp 'exercises/(practice|concept)' ; then continue @@ -62,3 +63,8 @@ jobs: repo: context.repo.repo, body: body }) + + - name: Sanity check + if: steps.check.outputs.important_files_changed == 'false' + run: echo "No important files changed" + \ No newline at end of file