Skip to content

Commit

Permalink
run pre-commit within the same step after installing it; ci.yml now t…
Browse files Browse the repository at this point in the history
…riggered by push only
  • Loading branch information
drink7036290 committed Dec 18, 2024
1 parent 84f207b commit 317cb1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .github/actions/basics/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ runs:
with:
node-version: "latest"

- name: Install pre-commit
# 4. Run pre-commit hooks on all files
- name: Run pre-commit
run: |
python3 -m venv venv
source venv/bin/activate
pip install pre-commit
shell: bash

# 4. Run pre-commit hooks on all files
- name: Run pre-commit
run: pre-commit run --all-files
pre-commit run --all-files
shell: bash

# 5. Run linkspector
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always
Expand Down

0 comments on commit 317cb1d

Please sign in to comment.