-
Notifications
You must be signed in to change notification settings - Fork 182
43 lines (35 loc) · 1.15 KB
/
cargo-udeps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 }}