Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
heatray committed Jul 2, 2024
1 parent 34b4349 commit 70043c3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 22 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/append-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: Append changelog for new release

on:

workflow_dispatch:
inputs:
version:
description: 'Version'
required: true

jobs:

append-changelog:
runs-on: ubuntu-latest
steps:

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

- name: Write changelog
run: |
Expand Down Expand Up @@ -49,7 +45,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
36 changes: 26 additions & 10 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
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
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
7 changes: 1 addition & 6 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@ name: Update submodules
on: workflow_dispatch

jobs:

update-submodules:
runs-on: ubuntu-latest
steps:

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

- name: Update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit & push changes
run: |
git config --global user.name 'github-actions[bot]'
Expand Down

0 comments on commit 70043c3

Please sign in to comment.