Skip to content

Commit

Permalink
Enforce docspath (#31)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
FISHMANPET authored Feb 4, 2022
1 parent 517280d commit 4b08a30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mkdocs/umn-mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ parameters:
jobs:
- job: build
steps:
- bash: |
echo '$(Build.DefinitionName)'
echo '${{ parameters.DocsPath }}'
if [[ '${{ parameters.DocsPath }}' == *"DocsPath"* ]]; then exit 1; fi;
displayName: Fail build if DocsPath is not set
# - script: |
# sudo npm i -g markdownlint-cli
# markdownlint "**/*.md"
Expand Down

0 comments on commit 4b08a30

Please sign in to comment.