Skip to content

Commit 5ad7221

Browse files
committed
Check if redirects is valid json
1 parent fc8fc2a commit 5ad7221

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
- checkout
4040
- setup_aws_credentials
4141
- write_env_variables
42+
- run:
43+
name: Validate redirects
44+
command: |
45+
if [ -f "$HOME/project/redirects.json" ]; then
46+
python -mjson.tool "$HOME/project/redirects.json" > /dev/null
47+
fi
4248
- run:
4349
name: Validate and build documentation
4450
command: |

0 commit comments

Comments
 (0)