File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 61
61
steps :
62
62
- uses : actions/checkout@v1
63
63
- name : verify semantic convention tables
64
- run : docker run --rm -v $(pwd)/semantic_conventions:/source -v $(pwd)/specification:/spec otel/semconvgen:0.3.1 -f /source markdown -md /spec --md -check
64
+ run : make table -check
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ MISSPELL_BINARY=bin/misspell
7
7
MISSPELL = $(TOOLS_DIR ) /$(MISSPELL_BINARY )
8
8
MARKDOWN_LINK_CHECK =markdown-link-check
9
9
MARKDOWN_LINT =markdownlint
10
-
10
+ # see https://github.com/open-telemetry/build-tools/releases for semconvgen updates
11
+ SEMCONVGEN_VERSION =0.3.1
11
12
12
13
.PHONY : install-misspell
13
14
install-misspell :
@@ -40,9 +41,17 @@ install-markdownlint:
40
41
markdownlint :
41
42
@for f in $(ALL_DOCS ) ; do echo $$ f; $(MARKDOWN_LINT ) -c .markdownlint.yaml $$ f || exit 1; done
42
43
44
+ # Generate markdown tables from YAML definitions
43
45
.PHONY : table-generation
44
46
table-generation :
45
- docker run --rm -v $(PWD ) /semantic_conventions:/source -v $(PWD ) /specification:/spec otel/semconvgen -f /source markdown -md /spec
47
+ docker run --rm -v $(PWD ) /semantic_conventions:/source -v $(PWD ) /specification:/spec \
48
+ otel/semconvgen:$(SEMCONVGEN_VERSION ) -f /source markdown -md /spec
49
+
50
+ # Check if current markdown tables differ from the ones that would be generated from YAML definitions
51
+ .PHONY : table-check
52
+ table-check :
53
+ docker run --rm -v $(PWD ) /semantic_conventions:/source -v $(PWD ) /specification:/spec \
54
+ otel/semconvgen:$(SEMCONVGEN_VERSION ) -f /source markdown -md /spec --md-check
46
55
47
56
# Run all checks in order of speed / likely failure.
48
57
.PHONY : check
You can’t perform that action at this time.
0 commit comments