Skip to content

Commit

Permalink
Updated the code quality workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
labrijisaad committed Apr 5, 2024
1 parent c5921b6 commit 9f4b48d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ jobs:
run: bandit -r .
# Commit and push changes made by Black and Ruff
- name: Commit and push if changed
env:
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add -A
git commit -m "Automated code quality fixes" -a || echo "No changes to commit"
git push
git push https://${MY_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:${GITHUB_REF_NAME}

0 comments on commit 9f4b48d

Please sign in to comment.