Skip to content

Commit

Permalink
Do not run the linter directly after reformatting
Browse files Browse the repository at this point in the history
- If we do, the linter will still have the old environment, so it will
  be ineffective
  • Loading branch information
Minion3665 committed Aug 15, 2022
1 parent a564adf commit 2a7329d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ on:
jobs:
reformat:
runs-on: ubuntu-latest
outputs:
reformatting-required: ${{ steps.push-back-to-repo.outputs.modified }}
steps:
- uses: actions/checkout@v3
with:
token : ${{ secrets.PAT }}
- uses: actions/setup-python@v4
with:
python-version: '3.9'
Expand All @@ -24,10 +28,12 @@ jobs:
- name: Remove commented out code
run: eradicate --in-place ./**/*.py
- name: Push back to repo
id: push-back-to-repo
uses: anyone-developer/[email protected]
lint:
runs-on: ubuntu-latest
needs: reformat
if: needs.reformat.reformatting-required == 0
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down

0 comments on commit 2a7329d

Please sign in to comment.