Skip to content

Commit

Permalink
chore(ci): run codespell on the actual PR commit, instead of the merg…
Browse files Browse the repository at this point in the history
…e one
  • Loading branch information
Zygimantass committed Jul 9, 2024
1 parent 1c2229a commit 83ac914
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,19 @@ jobs:
name: Run codespell
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Check out the PR commit head
uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Check out the repo
uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install codespell
run: pip install codespell
- name: Run codespell
run: codespell
run: codespell

0 comments on commit 83ac914

Please sign in to comment.