Skip to content

ci: add linting to release workflow #1093

ci: add linting to release workflow

ci: add linting to release workflow #1093

Workflow file for this run

---
name: Lint
on:
- push
- pull_request
- workflow_dispatch
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Set up Python3
uses: actions/setup-python@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v36
- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "Changed: $file"
done
- name: Pre Commit
uses: pre-commit/[email protected]
with:
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }}