Skip to content

Commit

Permalink
Broker test: also generate and add documentation (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
bczoma authored Dec 2, 2024
1 parent 35ac594 commit 4908ab7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/broker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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

0 comments on commit 4908ab7

Please sign in to comment.