Skip to content

Commit 5d47a94

Browse files
committed
apidiffs
1 parent 277a014 commit 5d47a94

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/build-common.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- name: spotless
7878
run: ./gradlew spotlessApply
7979

80-
- name: Check for diff
80+
- name: Check that semconv generation is up to date
8181
run: |
8282
# need to "git add" in case any generated files did not already exist
8383
# select files from both /semconv and /semconv-incubating
@@ -92,5 +92,19 @@ jobs:
9292
exit 1
9393
fi
9494
95+
- name: Check that API diffs are up to date
96+
run: |
97+
# need to "git add" in case any generated files did not already exist
98+
git add docs/apidiffs/
99+
if git diff --cached --quiet
100+
then
101+
echo "No diff detected in apidiffs."
102+
else
103+
echo "Diff detected in apidiffs - did you run './gradlew jApiCmp'?"
104+
echo $(git diff --cached --name-only)
105+
echo $(git diff --cached)
106+
exit 1
107+
fi
108+
95109
misspell-check:
96110
uses: ./.github/workflows/reusable-misspell-check.yml

0 commit comments

Comments
 (0)