chore(deps): update pre-commit hook rhysd/actionlint to v1.7.4 #914
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: lint | |
on: [push, pull_request] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 2 | |
- name: Install pre-commit | |
run: pipx install pre-commit | |
- name: Identify Python version | |
run: echo "PYTHON_VERSION=$(python -V | cut -d' ' -f2)" >> "$GITHUB_ENV" | |
- name: Cache pre-commit hooks | |
id: cache-pre-commit | |
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-${{ env.PYTHON_VERSION }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
restore-keys: | | |
pre-commit-${{ env.PYTHON_VERSION }}- | |
pre-commit- | |
- name: Prune pre-commit hooks | |
if: steps.cache-pre-commit.outputs.cache-hit != 'true' | |
run: pre-commit gc | |
- name: Run gitlint | |
run: pre-commit run --color=always --hook-stage manual gitlint-ci | |
- name: Run pre-commit | |
run: pre-commit run --all-files --color=always --show-diff-on-failure | |
super-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Run super-linter | |
uses: github/super-linter@45fc0d88288beee4701c62761281edfee85655d7 # v5.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VALIDATE_BASH: false | |
VALIDATE_DOCKERFILE_HADOLINT: false | |
VALIDATE_GITHUB_ACTIONS: false | |
VALIDATE_GITLEAKS: false | |
VALIDATE_MARKDOWN: false | |
VALIDATE_YAML: false |