Skip to content

Commit

Permalink
Merge pull request #8 from arkadioz/feature/use-inputs-in-actions
Browse files Browse the repository at this point in the history
feat: add inputs to actions
  • Loading branch information
arkadioz authored Dec 27, 2023
2 parents 489aa02 + 52fbba0 commit 4b0e12c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
- uses: ./
- uses: ./
with:
person: 'Remy'
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: DAVV ACTIONS DEMO
description: This action greets persons
inputs:
person:
description: 'The person to greet'
required: true
default: 'Goffy'
runs:
using: node20
main: index.js
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
console.log("hello world");
const person = process.env.INPUT_PERSON;
console.log(`Hello, ${person}!`);
console.log('hello ' + person);

0 comments on commit 4b0e12c

Please sign in to comment.