Skip to content

Commit

Permalink
use @actions/core package
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Jan 22, 2021
1 parent 4935061 commit 4e37aa5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/actions/action-a/.gitignore
@@ -0,0 +1 @@
/node_modules
3 changes: 2 additions & 1 deletion .github/actions/action-a/index.js
@@ -1,3 +1,4 @@
const core = require('@actions/core');
const message = `Hello, ${process.env.INPUT_NAME}!`;
console.log(message);
console.log(`::set-output name=message::${message}`);
core.setOutput('message', message);
13 changes: 13 additions & 0 deletions .github/actions/action-a/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .github/actions/action-a/package.json
@@ -0,0 +1,16 @@
{
"name": "action-a",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"@actions/core": "^1.2.6"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "bouzuya <m@bouzuya.net> (https://bouzuya.net/)",
"license": "MIT"
}

0 comments on commit 4e37aa5

Please sign in to comment.