Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
labrijisaad committed Apr 5, 2024
1 parent 2e7464d commit 0c259f4
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ jobs:
- name: Security Check with Bandit
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 https://x-access-token:${MY_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:${GITHUB_REF_NAME}
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.MY_GITHUB_TOKEN }}

0 comments on commit 0c259f4

Please sign in to comment.