-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e7464d
commit 0c259f4
Showing
1 changed file
with
4 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |