Skip to content

Commit f91d172

Browse files
committed
Init repo
1 parent 0ae7d35 commit f91d172

File tree

595 files changed

+216150
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

595 files changed

+216150
-2
lines changed

README.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1-
# install-cpanm
2-
GitHub action to install App::cpanm
1+
[![Actions Status](https://github.com/perl-actions/install-cpanm/workflows/check/badge.svg)](https://github.com/perl-actions/install-cpanm/actions)
2+
3+
# install-cpm
4+
5+
GitHub action to install App::cpanminus
6+
7+
This action installs 'cpnaminus' as root so you can then use it in your workflow.
8+
9+
## Inputs
10+
11+
none
12+
13+
## Outputs
14+
15+
none
16+
17+
## Example usage
18+
19+
```
20+
uses: perl-actions/[email protected]
21+
run: |
22+
sudo cpanm Module::To::Install
23+
```

action.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: 'install cpanm'
2+
description: 'install App::cpanminus'
3+
branding:
4+
icon: 'arrow-right'
5+
color: 'blue'
6+
runs:
7+
using: 'node12'
8+
main: 'index.js'

index.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const core = require('@actions/core');
2+
const github = require('@actions/github');
3+
const tc = require('@actions/tool-cache');
4+
const exec = require('@actions/exec');
5+
6+
async function action() {
7+
const cpanm = await tc.downloadTool('https://cpanmin.us');
8+
core.setOutput("cpanminus", cpanm);
9+
await exec.exec( 'sudo', [ 'perl', cpanm, 'App::cpanminus'] );
10+
return;
11+
}
12+
13+
// Call action
14+
(async() => {
15+
try {
16+
await action();
17+
} catch (error) {
18+
core.setFailed(error.message);
19+
}
20+
})();

node_modules/.bin/semver

+160
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/uuid

+65
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/which

+52
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)