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 #1610

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
4 changes: 2 additions & 2 deletions .github/workflows/append-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Write changelog
run: |
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
rm -fv CHANGELOG.md.bak

- name: Commit & push changes
uses: EndBug/add-and-commit@v8
uses: EndBug/add-and-commit@v9
with:
author_name: github-actions[bot]
author_email: github-actions[bot]@users.noreply.github.com
Expand Down
38 changes: 27 additions & 11 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,45 @@
name: Check
name: Markdown Lint & Spellcheck

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

jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DavidAnson/markdownlint-cli2-action@v9
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v16
with:
globs: 'CHANGELOG.md'
spellchecker:

spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup aspell
run: sudo apt-get -y update && sudo apt-get -y install aspell aspell-en
- name: Run spellchecker
run: |
SPELLCHECK_OUT=$(cat CHANGELOG.md \
| aspell --lang=en --encoding=utf-8 --personal=./.aspell.en.pws list)
echo $SPELLCHECK_OUT
test $(echo -n $SPELLCHECK_OUT | wc -c) -eq 0
sudo apt-get -y update
sudo apt-get -y install aspell aspell-en
- name: Run spellcheck
run: |
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