Skip to content

Commit

Permalink
Adding code to say hello
Browse files Browse the repository at this point in the history
  • Loading branch information
developerdenesh committed Jan 10, 2023
1 parent 64bef75 commit 5b6019d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yml
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
13 changes: 13 additions & 0 deletions index.js
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();

0 comments on commit 5b6019d

Please sign in to comment.