[WIP] [Refactor] Reorganization of BERTrend code #99
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
name: black-action | |
on: [push, pull_request] | |
jobs: | |
linter_name: | |
name: runner / black | |
if: github.actor != 'github-actions' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Black formatter | |
uses: psf/black@stable | |
with: | |
options: "." | |
- name: Commit black changes | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email '[email protected]' | |
git add . | |
git commit -m ":art: Format Python code with psf/black" || echo "No changes to commit" | |
git push || echo "No changes to push" | |
# echo commands to prevent the action from failing if there are no changes to commit/push |