-
-
Notifications
You must be signed in to change notification settings - Fork 65
38 lines (31 loc) · 977 Bytes
/
Copy pathmain.yml
File metadata and controls
38 lines (31 loc) · 977 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
32
33
34
35
36
37
38
name: Black
on: push
permissions:
contents: write
pull-requests: write
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install black
run: |
python -m pip install --upgrade pip
python -m pip install -U black
- name: Run black
run: black .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "Formate By @TheAlonetean"
title: "Format code."
body: "Automated code formatting."
labels: ⚫️ black
branch: autofix
delete-branch: true # <-- ye add kar diya hai
committer: TheAloneTeam <TheAloneTeam@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true