Skip to content

Commit fa8d364

Browse files
authored
Resolve javadoc diff failures (#4530)
* Resolve javadoc diff failures * Add comments
1 parent 160c09a commit fa8d364

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/diff-javadoc.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
echo "run=$(cat modules.json | sed "s/[]\"[]//g" | sed "s/,/\n/g" | xargs printf -- "%s:kotlinDoc ")" >> $GITHUB_OUTPUT
3232
3333
- name: Build
34-
run: ./gradlew ${{ steps.changed-modules.outputs.run }}
34+
# Certain SDKs won't export docs, make a blank folder to diff if that's the case
35+
run: mkdir build && ./gradlew ${{ steps.changed-modules.outputs.run }}
3536

3637
- name: Move original docs
3738
run: mv build ~/diff/modified
@@ -41,7 +42,8 @@ jobs:
4142
ref: ${{ github.base_ref }}
4243

4344
- name: Build
44-
run: ./gradlew ${{ steps.changed-modules.outputs.run }}
45+
# Certain SDKs won't export docs, make a blank folder to diff if that's the case
46+
run: mkdir build && ./gradlew ${{ steps.changed-modules.outputs.run }}
4547

4648
- name: Move modified docs
4749
run: mv build ~/diff/original
@@ -62,6 +64,7 @@ jobs:
6264
> diff.md
6365
6466
- name: Add comment
67+
continue-on-error: true
6568
uses: mshick/add-pr-comment@a65df5f64fc741e91c59b8359a4bc56e57aaf5b1
6669
with:
6770
message-path: diff.md

0 commit comments

Comments
 (0)