-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64bef75
commit 5b6019d
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Say hello | ||
description: An action to say hello | ||
inputs: | ||
name: | ||
description: 'Name of person to say hello to' | ||
required: true | ||
runs: | ||
using: node12 | ||
main: index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const core = require('@actions/core') | ||
const exec = require('@actions/exec') | ||
|
||
const run = async () => { | ||
try { | ||
const name = core.getInput('name'); | ||
await exec.exec(`Hello ${name}`); | ||
} catch(error) { | ||
core.setFailed(error.message); | ||
} | ||
} | ||
|
||
run(); |