From 4908ab75a212c1062aee860ba2a8dc63539d6d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Czoma?= Date: Mon, 2 Dec 2024 16:19:34 -0500 Subject: [PATCH] Broker test: also generate and add documentation (#81) --- .github/workflows/broker-build-test.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/broker-build-test.yml b/.github/workflows/broker-build-test.yml index 2a664695..753d52c0 100644 --- a/.github/workflows/broker-build-test.yml +++ b/.github/workflows/broker-build-test.yml @@ -102,6 +102,12 @@ jobs: direct {} }" > ~/.terraformrc + + - name: Build documentation + if: steps.check-changed-files.outputs.files_changed == 'true' + run: | + make generate-docs + - name: Build provider if: steps.check-changed-files.outputs.files_changed == 'true' run: | @@ -156,3 +162,13 @@ jobs: # grep "< \"egress_enabled\": true," diff.out # verify string has been converted to bool # terraform destroy -auto-approve popd + + - name: Commit back the generated code + if: steps.check-changed-files.outputs.files_changed == 'true' + run: | + git add internal/broker/generated/ + git add docs/ + # Use the latest commit message and append a note + MESSAGE="$(git log -1 --pretty=%B) - added generated code and docs updates [skip ci]" + git commit -m "$MESSAGE" + git push