Skip to content

cargo-udeps

cargo-udeps #28

Workflow file for this run

name: cargo-udeps
on:
schedule:
# Triggers the workflow every Sunday
- cron: "0 18 * * 0"
env:
CARGO_TERM_COLOR: always
jobs:
cargo-udeps:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
# cargo-udeps require nightly to run
toolchain: nightly
- uses: arduino/setup-protoc@v2
- name: Install cargo-udeps
run: cargo install --locked cargo-udeps
- name: Check for unused dependencies
run: cargo +nightly udeps --workspace --all-targets --all-features
- name: Create github issue for failed action
uses: imjohnbo/issue-bot@v3
if: ${{ failure() }}
with:
labels: "bug"
title: "ci: Github Action for `cargo-udeps` failed"
body: |
`cargo-udeps` failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Reference: ${{ github.ref_type }} ${{ github.ref }} (commit ${{ github.sha }}).
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}