Second Brain: Crafted, Curated, Connected, Compounded on 10月02日
GitHub Actions拼写检查Markdown文件
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文介绍了如何使用GitHub Actions在Markdown文件中进行拼写检查,并通过示例代码展示了如何配置和运行拼写检查工作流程。

Creating DevOps on Markdown, I thought could be a great idea for checking my blog/book, as it’s on GitHub already.

GitHub Actions: Resulting in artifacts with all spelling errors.

Spellcheck error resuhttps://www.ssp.sh/brain/Pasted%20image%2020231026142515.png20231026142515.png">

# GitHub Workflow of Actions

Example for GitHub Workflow:

 1 2 3 4 5 6 7 8 9101112131415161718192021222324252627282930313233343536373839404142
name: Spell Check Markdown Fileson:  push:    branches:      - mainjobs:  spellcheck:    runs-on: ubuntu-latest    steps:    - name: Checkout Code      uses: actions/checkout@v3    - name: Set up Node.js      uses: actions/setup-node@v3      with:        node-version: 'lts/*' #'16'  lts: action will always set up the latest LTS version available at runtime    - name: Install Markdown Spellcheck      run: |        npm i markdown-spellcheck    - name: Run Markdown Spellcheck      run: |        cd src        find . -name "*.md" | xargs npx markdown-spellcheck -r -n -a --en-us | tee spellcheck-results.md    - name: Upload spellcheck results as artifact      uses: actions/upload-artifact@v3      with:        name: spellcheck-results        path: src/spellcheck-results.md    # - name: Commit and Push Spellcheck Results    #   run: |    #     git config --global user.name 'GitHub Actions'    #     git config --global user.email 'actions@github.com'    #     git add src/spellcheck-results.html    #     git commit -m "Add spellcheck results"    #     git push

# Other Actions


Origin:
References:
Created 2023-10-26

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

GitHub Actions Markdown Spell Check Automation Code
相关文章