Skip to content

Avoid detached head state with dependabot changes #478

Avoid detached head state with dependabot changes

Avoid detached head state with dependabot changes #478

---
# 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]