From 7a510f03fad17ca920948d7ebd58d798bc9fa37f Mon Sep 17 00:00:00 2001 From: Adam Wilson Date: Sat, 16 Aug 2025 19:25:51 -0600 Subject: [PATCH] commit step --- .github/workflows/guidelines_test_04.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/guidelines_test_04.yml b/.github/workflows/guidelines_test_04.yml index 482343c24..a910b78fd 100644 --- a/.github/workflows/guidelines_test_04.yml +++ b/.github/workflows/guidelines_test_04.yml @@ -33,3 +33,20 @@ jobs: run: | pytest -k test_04_malicious_prompts_rag_and_cot -s --disable-warnings + - name: Check for changes + id: verify-changed-files + run: | + if [ -n "$(git status --porcelain)" ]; then + echo "changed=true" >> $GITHUB_OUTPUT + else + echo "changed=false" >> $GITHUB_OUTPUT + fi + + - name: Commit and push changes + if: steps.verify-changed-files.outputs.changed == 'true' + run: | + git config --local user.email "42450907+lightbroker@users.noreply.github.com" + git config --local user.name "Adam Wilson" + git add . + git commit -m "Auto-generated files from workflow [skip ci]" + git push \ No newline at end of file