Skip to content

Commit 0c259f4

Browse files
committed
test
1 parent 2e7464d commit 0c259f4

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/code_quality.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ jobs:
2626
- name: Security Check with Bandit
2727
run: bandit -r .
2828
# Commit and push changes made by Black and Ruff
29-
- name: Commit and push if changed
30-
env:
31-
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
32-
run: |
33-
git config --global user.name 'github-actions'
34-
git config --global user.email '[email protected]'
35-
git add -A
36-
git commit -m "Automated code quality fixes" -a || echo "No changes to commit"
37-
git push https://x-access-token:${MY_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:${GITHUB_REF_NAME}
29+
- name: Commit & Push changes
30+
uses: actions-js/push@master
31+
with:
32+
github_token: ${{ secrets.MY_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)