-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (32 loc) · 951 Bytes
/
suggest.yml
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
32
33
34
35
36
37
---
on: [pull_request] # Support only pull_request event.
name: reviewdog-suggester
jobs:
black:
name: Suggest black changes
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get python
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install black
run: pip install black==22.3.0
- name: Format
run: black .
- name: Suggest changes
uses: reviewdog/action-suggester@v1
with:
tool_name: black
- name: Send Slack notification
uses: 8398a7/action-slack@v2
if: failure()
with:
status: ${{ job.status }}
text: ":question: Incoming BLACK suggestions :question:"
author_name: ${{ github.actor }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}