From af57c046412a19bcb16d4f157f7e90e13e92e3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 28 Oct 2024 13:00:38 +0100 Subject: [PATCH] Commit generated files automatically --- .github/PULL_REQUEST_TEMPLATE.md | 1 - .github/workflows/json-regenerate-check.yml | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 01ba2a6b67..dab0d621cf 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,7 +3,6 @@ Please complete the following before merging: - [ ] Update changelog. -- [ ] Make sure there are generated JSON files from the YAML test files. - [ ] Test changes in at least one language driver. - [ ] Test these changes against all server versions and topologies (including standalone, replica set, sharded clusters, and serverless). diff --git a/.github/workflows/json-regenerate-check.yml b/.github/workflows/json-regenerate-check.yml index 6d70308042..f4863dc4b4 100644 --- a/.github/workflows/json-regenerate-check.yml +++ b/.github/workflows/json-regenerate-check.yml @@ -31,4 +31,9 @@ jobs: python3 ./source/client-side-encryption/etc/generate-test.py ./source/client-side-encryption/etc/test-templates/*.template ./source/client-side-encryption/tests/legacy python3 ./source/client-side-operations-timeout/etc/generate-basic-tests.py ./source/client-side-operations-timeout/etc/templates ./source/client-side-operations-timeout/tests python3 ./source/etc/generate-handshakeError-tests.py - cd source && make -B && git diff --exit-code + cd source && make -B + + - name: "Commit the changes" + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "Update generated files"