Skip to content

Commit

Permalink
Merge pull request #5 from fhdsl/fixPRyml
Browse files Browse the repository at this point in the history
port over template pr yml
  • Loading branch information
kweav authored Jan 13, 2025
2 parents 1f9033f + 77ed517 commit afeface
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
toggle_style_code: "${{ env.STYLE_CODE }}"
toggle_url_check: "${{ env.URL_CHECKER }}"
toggle_quiz_check: "${{ env.CHECK_QUIZZES }}"
toggle_md_linter: "${{ env.MARKDOWN_LINTER }}"
toggle_readability: "${{ env.READABILITY_REPORT }}"
toggle_render_preview: "${{ env.RENDER_PREVIEW }}"
rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}"

Expand All @@ -62,7 +64,7 @@ jobs:
error_min: 3
branch_name: ${GITHUB_HEAD_REF}
secrets:
gh_pat: secrets.GH_PAT
gh_pat: ${{ secrets.GH_PAT }}

url-check:
name: Check URLs
Expand All @@ -74,8 +76,8 @@ jobs:
error_min: 0
branch_name: ${GITHUB_HEAD_REF}
secrets:
gh_pat: secrets.GH_PAT
gh_pat: ${{ secrets.GH_PAT }}

quiz-check:
name: Check quiz formatting
if: ${{needs.yaml-check.outputs.toggle_quiz_check == 'yes'}}
Expand All @@ -86,7 +88,7 @@ jobs:
error_min: 0
branch_name: ${GITHUB_HEAD_REF}
secrets:
gh_pat: secrets.GH_PAT
gh_pat: ${{ secrets.GH_PAT }}

############################# Style the code ###################################
style-code:
Expand All @@ -113,6 +115,26 @@ jobs:
git commit -m 'Style *mds' || echo "No changes to commit"
git push origin || echo "No changes to commit"
############################# 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 ###################################

render-preview:
Expand Down

0 comments on commit afeface

Please sign in to comment.