forked from getsentry/sentry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 677 Bytes
/
black.yml
File metadata and controls
31 lines (24 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: black
on: push
jobs:
format:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Black
run: pip install -r linter-requirements.txt
- name: Run Black
run: black tests examples sentry_sdk
- name: Commit changes
run: |
if git diff-files --quiet; then
echo "No changes"
exit 0
fi
git config --global user.name 'sentry-bot'
git config --global user.email 'markus+ghbot@sentry.io'
git commit -am "fix: Formatting"
git push