Skip to content

Commit ba178b5

Browse files
committed
Only deploy if validate succeeds
1 parent 8d7c0db commit ba178b5

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ jobs:
2121
with:
2222
python-version: 3.x
2323
- run: python3 -m pip install -r requirements-dev.txt
24+
- run: pre-commit install
25+
- run: pre-commit install-hooks
2426
- run: pre-commit run --all-files
2527

2628
# Build and deploy the site
2729
deploy:
30+
needs: validate
2831
runs-on: ubuntu-latest
2932
steps:
3033
- uses: actions/checkout@v4

.markdownlintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# .markdownlintignore
22

33
# TODO: Lint these files
4+
.github/
45
docs/
6+
README.md

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v3.2.0
9+
rev: v5.0.0
1010
hooks:
1111
- id: trailing-whitespace
1212
- id: end-of-file-fixer

0 commit comments

Comments
 (0)