Skip to content

Add retries

Add retries #2767

Workflow file for this run

name: Lint
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# fetch all to allow linting of differences between branches
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: mfinelli/setup-shfmt@v2
- name: Install actionlint
run: |
# Install actionlint to ~/bin/, otherwise pre-commit won't be able to find the executable.
GOBIN="${HOME}/bin/" go install github.com/rhysd/actionlint/cmd/actionlint@latest
- uses: pre-commit/[email protected]
with:
# ensure we're only linting the diff between the PR and the base ref
extra_args: --from-ref origin/${{ github.event.pull_request.base.ref }} --to-ref HEAD