mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-04-30 23:37:56 +02:00
commit step
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user