@@ -30,29 +30,23 @@ jobs:
3030
3131 - name : Get changed content/data files
3232 id : changed_files
33- uses : ./.github/ actions/get- changed-files
33+ uses : tj- actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
3434 with :
3535 files : |
3636 content/**
3737 data/**
3838
3939 - name : Print content linter annotations if changed content/data files
40- if : steps.changed_files.outputs.filtered_changed_files
40+ if : steps.changed_files.outputs.any_modified == 'true'
4141 env :
42- # Make it an environment variable so that its value doesn't need to be escaped.
43- # See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
44- CHANGED_FILES : |-
45- ${{ steps.changed_files.outputs.filtered_changed_files }}
42+ CHANGED_FILES : ${{ steps.changed_files.outputs.all_modified_files }}
4643 # If there are errors, using `--print-annotations` will make it
4744 # so it does *not* exit non-zero.
4845 # This is so that all warnings and errors are printed.
4946 run : npm run lint-content -- --print-annotations --paths $CHANGED_FILES
5047
5148 - name : Run content linter if changed content/data files
52- if : steps.changed_files.outputs.filtered_changed_files
49+ if : steps.changed_files.outputs.any_modified == 'true'
5350 env :
54- # Make it an environment variable so that its value doesn't need to be escaped.
55- # See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
56- CHANGED_FILES : |-
57- ${{ steps.changed_files.outputs.filtered_changed_files }}
51+ CHANGED_FILES : ${{ steps.changed_files.outputs.all_modified_files }}
5852 run : npm run lint-content -- --errors-only --paths $CHANGED_FILES
0 commit comments