Skip to content

Commit

Permalink
Update pull_request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy authored Jan 14, 2025
1 parent 7e1c6ef commit 1a9b84a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
toggle_url_check: "${{ env.URL_CHECKER }}"
toggle_render_preview: "${{ env.RENDER_PREVIEW }}"
rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}"
toggle_readability: "${{ env.READABILITY_REPORT }}"

########################## Make the error reports ##############################
spell-check:
Expand All @@ -68,7 +69,27 @@ jobs:
check_type: urls
error_min: 0
gh_pat: secrets.GH_PAT
############################# Readability Report ###################################

readability-report:
name: Readability report
needs: yaml-check
runs-on: ubuntu-latest
if: ${{needs.yaml-check.outputs.toggle_readability == 'yes'}}

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Readability report
uses: Rebilly/lexi@v2
with:
github-token: ${{ secrets.GH_PAT }}
glob: '**/*.md'

###################### Render preview of website ##################
render-preview:
name: Render preview
needs: yaml-check
Expand Down

0 comments on commit 1a9b84a

Please sign in to comment.