std::formatter revised #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'SpellCheck Action' | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
spellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Gather Markdown files from git | |
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#multiline-strings | |
# echo "MARKDOWN_FILES=$(git ls-files '*.md')" >> $GITHUB_ENV | |
run: | | |
{ | |
echo 'MARKDOWN_FILES<<EOF' | |
git ls-files '*.md' | |
echo EOF | |
} >> "$GITHUB_ENV" | |
- name: Show files to spell check | |
run: | | |
echo "Markdown: ${{ env.MARKDOWN_FILES }}" | |
- name: Check Spelling [Markdown] | |
id: spellcheck | |
uses: rojopolis/[email protected] | |
continue-on-error: true | |
with: | |
config_path: .github/config/spellcheck.yml | |
source_files: ${{ env.MARKDOWN_FILES }} | |
task_name: Markdown | |
output_file: spellcheck-output.txt | |
- name: Upload Spellcheck Artifact | |
uses: actions/upload-artifact@v4 | |
if: '!cancelled()' # Do not upload artifact if job was cancelled | |
with: | |
name: Spellcheck Output | |
path: spellcheck-output.txt |