perl-actions/install with cpm

install Perl Modules using App::cpm

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
installList of modules or distributions to install [separated by newline]no
cpanfileUse a cpanfile to install modulesno
testsRun or not the unit testsnofalse
globalPerform a global or local installation: -gnotrue
argsExtra args passed to the install command. Supports shell-style quoting (single and double quotes) for values that contain spaces.no
sudoPerform installations as rootnotrue
verboseRun cpm with -v flag or notnofalse
perlPath of perl to use, defaults to current PATHnoperl
pathPath where to install cpm: the string can use $Config valuesno$Config{installsitescript}/cpm
workersNumber of parallel workers for cpm downloads (e.g. 5). Leave empty to use cpm default.no""
mirrorSpecify a CPAN mirror URL to use with --mirrorno
snapshotPath to cpanfile.snapshot for snapshot-based installs (requires Carton::Snapshot). Leave empty to skip.no""
versionWhich version of cpm to install. Default 'main' tracks the latest release. On Perl interpreters older than v5.24, the default is automatically replaced by '0.998003' (the last release before cpm raised its minimum to v5.24). Set this input explicitly to override. nomain
checksumExpected SHA-256 hex digest of the cpm script. When set, the action verifies the downloaded (or cached) script matches this hash before installation and fails if there is a mismatch. Leave empty to skip verification (the computed hash is still logged for auditability). no""
retriesNumber of additional attempts after a cpm failure. 0 disables the retry loop (single attempt, historical behavior). Intended to absorb transient upstream failures (e.g. metacpan 599 / connection timed out) without flaking the job. no2
retry-waitBase delay in seconds between attempts. Applied with linear backoff: attempt N waits retry-wait * N seconds before the next attempt (e.g. 20s, 40s, 60s with the default). no20
namedescription
cpm-pathAbsolute path where cpm was installed
cache-hitWhether the cpm script was restored from cache (true/false)