Bump clap from 4.5.21 to 4.5.23 #363
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: pre-commit | |
on: | |
push: | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install libudev-dev | |
run: sudo apt-get update && sudo apt-get install libudev-dev | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
- name: Use Rust 1.83.0 | |
run: rustup override set 1.83.0 | |
- run: rustup component add clippy rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- name: Detect code style issues | |
uses: pre-commit/[email protected] | |
env: | |
SKIP: no-commit-to-branch | |
- name: Generate patch file | |
if: failure() | |
run: | | |
git diff-index -p HEAD > "${PATCH_FILE}" | |
[ -s "${PATCH_FILE}" ] && echo "UPLOAD_PATCH_FILE=${PATCH_FILE}" >> "${GITHUB_ENV}" | |
env: | |
PATCH_FILE: pre-commit.patch | |
- name: Upload patch artifact | |
if: failure() && env.UPLOAD_PATCH_FILE != null | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.UPLOAD_PATCH_FILE }} | |
path: ${{ env.UPLOAD_PATCH_FILE }} |