We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a564adf commit 2a7329dCopy full SHA for 2a7329d
.github/workflows/lint.yml
@@ -9,8 +9,12 @@ on:
9
jobs:
10
reformat:
11
runs-on: ubuntu-latest
12
+ outputs:
13
+ reformatting-required: ${{ steps.push-back-to-repo.outputs.modified }}
14
steps:
15
- uses: actions/checkout@v3
16
+ with:
17
+ token : ${{ secrets.PAT }}
18
- uses: actions/setup-python@v4
19
with:
20
python-version: '3.9'
@@ -24,10 +28,12 @@ jobs:
24
28
- name: Remove commented out code
25
29
run: eradicate --in-place ./**/*.py
26
30
- name: Push back to repo
31
+ id: push-back-to-repo
27
32
uses: anyone-developer/[email protected]
33
lint:
34
35
needs: reformat
36
+ if: needs.reformat.reformatting-required == 0
37
38
39
0 commit comments