diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e9ea87c..aeec9d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,4 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: ./ \ No newline at end of file + - uses: ./ + - uses: ./ + with: + person: 'Remy' \ No newline at end of file diff --git a/action.yml b/action.yml index e4a0cc1..aa67398 100644 --- a/action.yml +++ b/action.yml @@ -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 \ No newline at end of file diff --git a/index.js b/index.js index 0f50426..79b5742 100644 --- a/index.js +++ b/index.js @@ -1 +1,3 @@ -console.log("hello world"); \ No newline at end of file +const person = process.env.INPUT_PERSON; +console.log(`Hello, ${person}!`); +console.log('hello ' + person); \ No newline at end of file