Skip to content

Commit

Permalink
Add version json.
Browse files Browse the repository at this point in the history
  • Loading branch information
RossBugginsNHS committed Jul 1, 2024
1 parent 2fbd2a2 commit 97c9235
Show file tree
Hide file tree
Showing 4 changed files with 4 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
1 change: 1 addition & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ version:
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 97c9235

Please sign in to comment.