File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
.github/docs/actions/docs-core Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ outputs:
78
78
changed_files :
79
79
description : ' JSON array of changed documentation files'
80
80
value : ${{ steps.file-detection.outputs.changed_files_json }}
81
+ deleted_files_json :
82
+ description : ' JSON array of deleted documentation files'
83
+ value : ${{ steps.file-detection.outputs.deleted_files_json || '[]' }}
81
84
formatted_changed_files :
82
85
description : ' Markdown-formatted list of changed files with links'
83
86
value : ${{ steps.docs-analysis.outputs.formatted_files || '' }}
@@ -870,7 +873,7 @@ runs:
870
873
echo "::group::Cross-reference checking"
871
874
872
875
CHANGED_FILES_JSON='${{ steps.file-detection.outputs.changed_files_json }}'
873
- DELETED_FILES_JSON='${{ steps.file-detection.outputs.deleted_files_json || "[]" }}'
876
+ DELETED_FILES_JSON='${{ steps.file-detection.outputs.deleted_files_json }}'
874
877
MANIFEST_CHANGED="${{ steps.file-detection.outputs.manifest_changed }}"
875
878
DOCS_DIR="${{ inputs.docs-dir }}"
876
879
@@ -1028,6 +1031,11 @@ runs:
1028
1031
BROKEN_IMAGES=0
1029
1032
TOTAL_REFS=0
1030
1033
1034
+ # Set default value for DELETED_FILES_JSON if not provided
1035
+ if [ -z "$DELETED_FILES_JSON" ]; then
1036
+ DELETED_FILES_JSON="[]"
1037
+ fi
1038
+
1031
1039
# 1. Check for references to deleted files
1032
1040
if [ "$DELETED_FILES_JSON" != "[]" ] && [ -n "$DELETED_FILES_JSON" ]; then
1033
1041
echo "Checking for references to deleted files..."
You can’t perform that action at this time.
0 commit comments