Skip to content

cargo(deps): bump clap from 4.5.48 to 4.5.54 #48

cargo(deps): bump clap from 4.5.48 to 4.5.54

cargo(deps): bump clap from 4.5.48 to 4.5.54 #48

Workflow file for this run

name: Dependabot Auto-merge
on:
pull_request_target:
types: [opened, synchronize]
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Checkout PR
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and index
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run tests
run: cargo test
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Check for unused dependencies
uses: bnjbvr/cargo-machete@main
- name: Enable auto-merge
if: success()
run: |
echo "Tests passed! Enabling auto-merge..."
echo "The PR will automatically merge once it receives an approval."
gh pr merge ${{ github.event.pull_request.number }} --auto --merge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}