Skip to content

Commit 77ed517

Browse files
committed
port over template pr yml
1 parent 1f9033f commit 77ed517

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/pull_request.yml

+26-4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
toggle_style_code: "${{ env.STYLE_CODE }}"
4949
toggle_url_check: "${{ env.URL_CHECKER }}"
5050
toggle_quiz_check: "${{ env.CHECK_QUIZZES }}"
51+
toggle_md_linter: "${{ env.MARKDOWN_LINTER }}"
52+
toggle_readability: "${{ env.READABILITY_REPORT }}"
5153
toggle_render_preview: "${{ env.RENDER_PREVIEW }}"
5254
rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}"
5355

@@ -62,7 +64,7 @@ jobs:
6264
error_min: 3
6365
branch_name: ${GITHUB_HEAD_REF}
6466
secrets:
65-
gh_pat: secrets.GH_PAT
67+
gh_pat: ${{ secrets.GH_PAT }}
6668

6769
url-check:
6870
name: Check URLs
@@ -74,8 +76,8 @@ jobs:
7476
error_min: 0
7577
branch_name: ${GITHUB_HEAD_REF}
7678
secrets:
77-
gh_pat: secrets.GH_PAT
78-
79+
gh_pat: ${{ secrets.GH_PAT }}
80+
7981
quiz-check:
8082
name: Check quiz formatting
8183
if: ${{needs.yaml-check.outputs.toggle_quiz_check == 'yes'}}
@@ -86,7 +88,7 @@ jobs:
8688
error_min: 0
8789
branch_name: ${GITHUB_HEAD_REF}
8890
secrets:
89-
gh_pat: secrets.GH_PAT
91+
gh_pat: ${{ secrets.GH_PAT }}
9092

9193
############################# Style the code ###################################
9294
style-code:
@@ -113,6 +115,26 @@ jobs:
113115
git commit -m 'Style *mds' || echo "No changes to commit"
114116
git push origin || echo "No changes to commit"
115117
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+
116138
############################# Render Preview ###################################
117139

118140
render-preview:

0 commit comments

Comments
 (0)