forked from NHERI-SimCenter/pelicun
-
Notifications
You must be signed in to change notification settings - Fork 0
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
fb7b88d
commit 19b4b16
Showing
3 changed files
with
1 addition
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -23,26 +23,4 @@ jobs: | |
pip install black flake8 | ||
- name: Run Black | ||
run: black -S . | ||
|
||
- name: Check for changes after Black | ||
id: git_status | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
git status | ||
if [[ `git status --porcelain` ]]; then | ||
git add . | ||
git commit -m "Format code with Black" | ||
else | ||
echo "No changes to commit" | ||
fi | ||
- name: Push changes | ||
if: success() && steps.git_status.outputs.commit_message != '' | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run Flake8 | ||
run: flake8 . | ||
run: black -S --diff . |
This file was deleted.
Oops, something went wrong.