Skip to content

Fix/url

Fix/url #4748

Workflow file for this run

name: Validate Pre Commit Hooks
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
concurrency:
group: ci-check-${{ github.ref }}
jobs:
validate:
name: Run Pre Commit Hooks
runs-on: ${{ vars.RUNNER_RUNS_ON }}
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
with:
token: ${{ secrets.GH_PAT2 }}
fetch-depth: 1
- uses: actions/[email protected]
with:
python-version: '3.12'
cache: 'pip' # caching pip dependencies
- name: Set up Go
uses: actions/[email protected]
with:
cache-dependency-path: "**/go.sum"
go-version: ${{ vars.GO_VERSION }} # settings > secrets and variables > variables > GO_VERSION
- name: "Go Imports"
run: go install golang.org/x/tools/cmd/goimports@latest
- uses: pre-commit/[email protected]
name: "Pre-commit run"
with:
extra_args: --show-diff-on-failure --color=always --hook-stage push --all-files