Skip to content

Add ssh-key option

Add ssh-key option #23

Workflow file for this run

# Runs unused dependency check for crate consumers.
name: Unused dependency check
on:
# we expect dependents to call this on a nightly basis
# schedule:
# - cron: "0 0 * * *"
workflow_call:
inputs:
# comma-separated list of features to check
features:
required: false
default: ""
type: string
packages:
required: false
type: string
env:
CARGO_TERM_COLOR: always
jobs:
unused-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: lurk-lab/ci-workflows
path: ci-workflows
- uses: ci-workflows/.github/actions/install-deps
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-udeps
# Normally running cargo-udeps requires use of a nightly compiler
# In order to have a more stable and less noisy experience, lets instead
# opt to use the stable toolchain specified via the 'rust-toolchain' file
# and instead enable nightly features via 'RUSTC_BOOTSTRAP'
- name: run cargo-udeps
run: RUSTC_BOOTSTRAP=1 cargo udeps --workspace --all-targets --features "${{ inputs.features }}"
- uses: JasonEtco/create-an-issue@v2
if: ${{ failure() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKFLOW_URL:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
with:
update_existing: true
filename: ci-workflows/.github/templates/UNUSED_DEPS_ISSUE.md