Merge pull request #952 from risuorg/dependabot/github_actions/pypa/g… #547
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: pre-commit | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.18' | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pre-commit | |
key: ${{ runner.os }}-precommit-${{ hashFiles('**/.pre-commit-config.yaml/*') }} | |
restore-keys: | | |
${{ runner.os }}-precommit- | |
- uses: pre-commit/action@v3.0.1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |