Skip to content

Commit bd70a00

Browse files
Merge pull request #105 from Create-Python-App/fix/46-md-shell
ci: markdownlint and shellcheck workflows (#46)
2 parents a6496c9 + bf398eb commit bd70a00

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/markdownlint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Markdown Lint
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
workflow_dispatch:
8+
jobs:
9+
markdownlint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: DavidAnson/markdownlint-cli2-action@v19
14+
with:
15+
globs: "**/*.md"

.github/workflows/shellcheck.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Shellcheck
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
workflow_dispatch:
8+
jobs:
9+
shellcheck:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- run: |
14+
if compgen -G "**/*.sh" > /dev/null; then
15+
sudo apt-get update && sudo apt-get install -y shellcheck
16+
find . -name "*.sh" -print0 | xargs -0 shellcheck
17+
else
18+
echo "No shell scripts; skipping"
19+
fi

0 commit comments

Comments
 (0)