Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github actions #2786

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 40 additions & 18 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,48 @@
name: check
on: [push]
name: Markdown Lint & Spellcheck

on:
workflow_dispatch:
push:
branches:
- '**'
paths:
- 'CHANGELOG.md'
- 'ROADMAP.md'
- '.markdownlint.json'
- '.aspell.*.pws'

jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v16
with:
node-version: 18
- name: run markdownlint linter
run: |
npm install -g markdownlint-cli
markdownlint CHANGELOG.md ROADMAP.md
spellchecker:
globs: |
CHANGELOG.md
ROADMAP.md

spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup aspell
run: sudo apt-get -y update && sudo apt-get -y install aspell aspell-en
- name: run spellchecker
- uses: actions/checkout@v4
- name: Setup aspell
run: |
sudo apt-get -y update
sudo apt-get -y install aspell aspell-en
- name: Run spellcheck
run: |
SPELLCHECK_OUT=$(cat CHANGELOG.md | aspell --lang=en --encoding=utf-8 --personal=./.aspell.en.pws list)
echo $SPELLCHECK_OUT
if [[ $(echo -n $SPELLCHECK_OUT | wc -c) -ne 0 ]]; then exit 1 ; fi
set -eux
temp=$(mktemp)
cat CHANGELOG.md \
| aspell \
--lang=en \
--encoding=utf-8 \
--personal=./.aspell.en.pws \
list \
| sort -u \
> $temp
if [ -s $temp ]; then
cat $temp
exit 1
fi
2 changes: 1 addition & 1 deletion .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_TOKEN }}

Expand Down