From 1a9b84adf1bb405bb2775dba29edd69b21c44e10 Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Tue, 14 Jan 2025 10:43:36 -0500 Subject: [PATCH 1/2] Update pull_request.yml --- .github/workflows/pull_request.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 70a1eab..2b7fd65 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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: @@ -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 From fa6b7f1f87353621875e177463459b2d0157c011 Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Tue, 14 Jan 2025 10:52:30 -0500 Subject: [PATCH 2/2] Update pull_request.yml --- .github/workflows/pull_request.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 2b7fd65..16c099c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,5 +1,5 @@ # Candace Savonen Dec 2021 -# Updated Aug 2024 +# Updated Jan 2025 name: Pull Request on: @@ -58,7 +58,8 @@ jobs: with: check_type: spelling error_min: 3 - gh_pat: secrets.GH_PAT + secrets: + gh_pat: ${{ secrets.GH_PAT }} url-check: name: Check URLs @@ -68,7 +69,9 @@ jobs: with: check_type: urls error_min: 0 - gh_pat: secrets.GH_PAT + secrets: + gh_pat: ${{ secrets.GH_PAT }} + ############################# Readability Report ################################### readability-report: