Skip to content

Commit eee2847

Browse files
committed
Add a synopsis
1 parent 96043e4 commit eee2847

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ GitHub action to install App::cpm
66

77
This action installs 'cpm' as root so you can then use it in your workflow.
88

9+
```yaml
10+
- name: install cpm and multiple modules
11+
uses: perl-actions/[email protected]
12+
with:
13+
install: |
14+
Simple::Accessor
15+
Test::Parallel
16+
# or you can use a cpanfile
17+
# cpanfile: 'your-cpanfile'
18+
# default values you can customize
19+
# sudo: true
20+
# version: master
21+
# where to install cpm
22+
# path: "$Config{installsitescript}/cpm"
23+
# which perl binary to use
24+
# perl: 'perl'
25+
```
26+
927
## Inputs
1028

1129
### `install`
@@ -66,6 +84,18 @@ You can then use cpm yourself in order commands.
6684
- run: 'sudo cpm install -g Simple::Accessor'
6785
```
6886
87+
### Install an older version of cpm
88+
89+
Just install cpm without running any install commands.
90+
You can then use cpm yourself in order commands.
91+
92+
```yaml
93+
- name: install cpm
94+
uses: perl-actions/[email protected]
95+
with:
96+
version: '0.990'
97+
```
98+
6999
### Install a single module
70100
71101
```yaml

0 commit comments

Comments
 (0)