forked from getsentry/sentry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 764 Bytes
/
black.yml
File metadata and controls
31 lines (24 loc) · 764 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-latest
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # 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