Update pre-commit hook pre-commit/pre-commit-hooks from v4.5.0 to v4.6.0 #162
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Verify Quality Checks | |
on: | |
pull_request: | |
types: [assigned, opened, synchronize, reopened] | |
concurrency: | |
# Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}. | |
# On master, we want all builds to complete even if merging happens faster to make it easier to discover at which point something broke. | |
group: ${{ github.ref == 'refs/heads/main' && format('quality-ci-main-{0}', github.sha) || format('quality-ci-{0}', github.ref) }} | |
cancel-in-progress: true | |
env: | |
GRADLE_OPTS: -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
renovate: ${{ steps.filter.outputs.renovate }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
renovate: | |
- '.github/renovate.json' | |
- '.github/workflows/renovate-verify.yml' | |
verify-renovate: | |
needs: changes | |
if: ${{ needs.changes.outputs.renovate == 'true' }} | |
name: Renovate official check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- run: npx --package renovate -c 'renovate-config-validator' | |
pre-commit: | |
name: Pre-commit checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: pip | |
- name: Install dependencies | |
run: pip install -U pip setuptools wheel pre-commit | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit/ | |
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Run pre-commit hooks | |
run: pre-commit run --all-files --show-diff-on-failure |