Skip to content

Commit 7815b7b

Browse files
committed
Simplify autoblack action
1 parent 20fdf51 commit 7815b7b

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/autoblack.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Check / auto apply Black
2+
23
on:
34
push:
4-
branches:
5-
- master
5+
branches:
6+
- master
7+
68
jobs:
79
black:
810
name: Check / auto apply black
@@ -15,15 +17,8 @@ jobs:
1517
with:
1618
options: "."
1719
continue-on-error: true
18-
- shell: pwsh
19-
id: check_files_changed
20-
run: |
21-
# Diff HEAD with the previous commit
22-
$diff = git diff
23-
$HasDiff = $diff.Length -gt 0
24-
Write-Host "::set-output name=files_changed::$HasDiff"
20+
2521
- name: Create Pull Request
26-
if: steps.check_files_changed.outputs.files_changed == 'true'
2722
uses: peter-evans/create-pull-request@v6
2823
with:
2924
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)