@@ -48,27 +48,25 @@ jobs:
4848
4949 - name : Get changed content files
5050 id : changed_files
51- uses : ./.github/ actions/get- changed-files
51+ uses : tj- actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
5252 with :
5353 files : ' content/**/*.md'
54- # For workflow_dispatch, compare against main
55- base : ${{ github.event_name == 'workflow_dispatch' && 'main' || '' }}
5654
5755 - name : Disable Next.js telemetry
5856 run : npx next telemetry disable
5957
6058 - name : Start server in the background
61- if : ${{ steps.changed_files.outputs.filtered_changed_files }}
59+ if : steps.changed_files.outputs.any_modified == 'true'
6260 run : npm start > /tmp/stdout.log 2> /tmp/stderr.log &
6361
6462 - name : Run readability analysis
65- if : ${{ steps.changed_files.outputs.filtered_changed_files }}
63+ if : steps.changed_files.outputs.any_modified == 'true'
6664 env :
67- CHANGED_FILES : ${{ steps.changed_files.outputs.filtered_changed_files }}
65+ CHANGED_FILES : ${{ steps.changed_files.outputs.all_modified_files }}
6866 run : npm run readability-report
6967
7068 - name : Find existing readability comment
71- if : ${{ steps.changed_files.outputs.filtered_changed_files }}
69+ if : steps.changed_files.outputs.any_modified == 'true'
7270 uses : peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad
7371 id : findComment
7472 with :
7775 body-includes : ' <!-- READABILITY_REPORT -->'
7876
7977 - name : Read readability report
80- if : ${{ steps.changed_files.outputs.filtered_changed_files }}
78+ if : steps.changed_files.outputs.any_modified == 'true'
8179 id : read_report
8280 run : |
8381 if [ -f "readability-report.md" ]; then
8987 fi
9088
9189 - name : Create or update readability comment
92- if : ${{ steps.changed_files.outputs.filtered_changed_files && steps.read_report.outputs.report }}
90+ if : steps.changed_files.outputs.any_modified == 'true' && steps.read_report.outputs.report
9391 uses : peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9
9492 with :
9593 comment-id : ${{ steps.findComment.outputs.comment-id }}
0 commit comments