48
48
toggle_style_code : " ${{ env.STYLE_CODE }}"
49
49
toggle_url_check : " ${{ env.URL_CHECKER }}"
50
50
toggle_quiz_check : " ${{ env.CHECK_QUIZZES }}"
51
+ toggle_md_linter : " ${{ env.MARKDOWN_LINTER }}"
52
+ toggle_readability : " ${{ env.READABILITY_REPORT }}"
51
53
toggle_render_preview : " ${{ env.RENDER_PREVIEW }}"
52
54
rendering_docker_image : " ${{ env.RENDERING_DOCKER_IMAGE }}"
53
55
62
64
error_min : 3
63
65
branch_name : ${GITHUB_HEAD_REF}
64
66
secrets :
65
- gh_pat : secrets.GH_PAT
67
+ gh_pat : ${{ secrets.GH_PAT }}
66
68
67
69
url-check :
68
70
name : Check URLs
74
76
error_min : 0
75
77
branch_name : ${GITHUB_HEAD_REF}
76
78
secrets :
77
- gh_pat : secrets.GH_PAT
78
-
79
+ gh_pat : ${{ secrets.GH_PAT }}
80
+
79
81
quiz-check :
80
82
name : Check quiz formatting
81
83
if : ${{needs.yaml-check.outputs.toggle_quiz_check == 'yes'}}
86
88
error_min : 0
87
89
branch_name : ${GITHUB_HEAD_REF}
88
90
secrets :
89
- gh_pat : secrets.GH_PAT
91
+ gh_pat : ${{ secrets.GH_PAT }}
90
92
91
93
# ############################ Style the code ###################################
92
94
style-code :
@@ -113,6 +115,26 @@ jobs:
113
115
git commit -m 'Style *mds' || echo "No changes to commit"
114
116
git push origin || echo "No changes to commit"
115
117
118
+ # ############################ Readability Report ###################################
119
+
120
+ readability-report :
121
+ name : Readability report
122
+ needs : yaml-check
123
+ runs-on : ubuntu-latest
124
+ if : ${{needs.yaml-check.outputs.toggle_readability == 'yes'}}
125
+
126
+ steps :
127
+ - name : Checkout repo
128
+ uses : actions/checkout@v4
129
+ with :
130
+ fetch-depth : 0
131
+
132
+ - name : Readability report
133
+ uses : Rebilly/lexi@v2
134
+ with :
135
+ github-token : ${{ secrets.GH_PAT }}
136
+ glob : ' **/*.md'
137
+
116
138
# ############################ Render Preview ###################################
117
139
118
140
render-preview :
0 commit comments