Skip to content

Commit

Permalink
Merge pull request #24 from NHSDigital/rossbugginsnhs/version-on-home…
Browse files Browse the repository at this point in the history
…-page

Rossbugginsnhs/version on home page
  • Loading branch information
RossBugginsNHS authored Jul 1, 2024
2 parents 567c449 + 97c9235 commit 0380729
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*vulnerabilities*report*.json
*report*json.zip
.version

version.json
*.code-workspace
!project.code-workspace

Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ config:: _install-dependencies version # Configure development environment (main
version:
rm -f .version
make version-create-effective-file dir=.
echo "{ \"schemaVersion\": 1, \"label\": \"version\", \"message\": \"$$(head -n 1 .version 2> /dev/null || echo unknown)\", \"color\": \"orange\" }" > version.json
# ==============================================================================

${VERBOSE}.SILENT: \
Expand Down
3 changes: 3 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ version:
(cd .. && make version); \
ver=$$(head -n 1 ../.version 2> /dev/null || echo unknown); \
echo "version: $$ver" > _config.version.yml; \
echo "$(VERSION)" > .version; \
else \
echo "version: $(VERSION)" > _config.version.yml; \
echo "$(VERSION)" > .version; \
fi
echo "{ \"schemaVersion\": 1, \"label\": \"version\", \"message\": \"$$(head -n 1 .version 2> /dev/null || echo unknown)\", \"color\": \"orange\" }" > version.json
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ callouts:

include:
- .version

- version.json
exclude:
- Makefile
- package-lock.json
Expand Down

0 comments on commit 0380729

Please sign in to comment.