FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Python/.github/workflows/code_formatter.yml at dev · examplehub/Python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
examplehub
/
Python
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
12
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Python
/
.github
/
workflows
/
code_formatter.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
21 lines (19 loc) · 680 Bytes
Breadcrumbs
Python
/
.github
/
workflows
/
code_formatter.yml
Copy path
File metadata and controls
21 lines (19 loc) · 680 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name
:
Code Formatter
on
:
[push, pull_request]
jobs
:
lint
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-python@v2
-
run
:
pip install black
-
run
:
black --check .
-
name
:
Commit black changes
if
:
failure()
run
:
|
black .
git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git commit -am "Formatted with psf/black"
git push --force origin HEAD:$GITHUB_REF
Back
|
FazBrowse Home
|
New Git URL