mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-27 14:46:01 +03:00
45 lines
985 B
YAML
45 lines
985 B
YAML
name: cspell
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
FORCE_COLOR: 2
|
|
NODE: 16
|
|
|
|
jobs:
|
|
pre_job:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
|
steps:
|
|
- id: skip_check
|
|
uses: fkirc/skip-duplicate-actions@v3
|
|
with:
|
|
github_token: ${{ github.token }}
|
|
cancel_others: 'true'
|
|
# skip_after_successful_duplicate: 'false'
|
|
concurrent_skipping: 'same_content'
|
|
do_not_skip: '["pull_request", "workflow_dispatch"]'
|
|
|
|
cspell:
|
|
needs: pre_job
|
|
if: ${{ needs.pre_job.outputs.should_skip == 'false' }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run cspell
|
|
uses: streetsidesoftware/cspell-action@v1
|
|
with:
|
|
config: ".cspell.json"
|
|
files: "**/*.md"
|
|
inline: error
|
|
incremental_files_only: false
|