Skip to content

Commit

Permalink
Fix Dependabot pre-commit check workflow (#171)
Browse files Browse the repository at this point in the history
* fix dependabot pre-commit checks

* move to or instead of and
  • Loading branch information
d33bs authored Nov 12, 2024
1 parent 6a7a702 commit f35a001
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/dependabot-pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v5
- name: Install python env
uses: ./.github/actions/install-python-env
with:
python-version: "3.11"
- name: Install vale dependencies
run: |
poetry run vale sync
- name: Install pre-commit
run: python -m pip install pre-commit
- name: Run pre-commit
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pre-commit-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:

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
Expand Down

0 comments on commit f35a001

Please sign in to comment.