Skip to content

Commit 4b08a30

Browse files
authored
Enforce docspath (#31)
* Try to ensure DocsPath is defined somehow If it's not defined, it will have a value of `$(DocsPath)` passed in from the pipeline yaml, so this should hopefully catch that
1 parent 517280d commit 4b08a30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mkdocs/umn-mkdocs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ parameters:
2121
jobs:
2222
- job: build
2323
steps:
24+
- bash: |
25+
echo '$(Build.DefinitionName)'
26+
echo '${{ parameters.DocsPath }}'
27+
if [[ '${{ parameters.DocsPath }}' == *"DocsPath"* ]]; then exit 1; fi;
28+
displayName: Fail build if DocsPath is not set
2429
# - script: |
2530
# sudo npm i -g markdownlint-cli
2631
# markdownlint "**/*.md"

0 commit comments

Comments
 (0)