Skip to content

Fix Dependabot pre-commit check workflow (#171) #471

Fix Dependabot pre-commit check workflow (#171)

Fix Dependabot pre-commit check workflow (#171) #471

---
# used for running pre-commit checks
name: pre-commit checks
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pre_commit_checks:
# avoid running for pull requests from dependabot and instead rely on
# dependabot-pre-commit.yml workflow.
if: ${{ github.event_name != 'pull_request' ||
github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install python env
uses: ./.github/actions/install-python-env
- name: Install vale dependencies
run: |
poetry run vale sync
- uses: pre-commit/[email protected]