From cc6340a7d15967155ea35c86a9bd40c1803b9733 Mon Sep 17 00:00:00 2001 From: gregorycottone Cottone Date: Fri, 17 May 2024 12:24:33 +0000 Subject: [PATCH] exercise 5 --- .github/actions/greeting/action.yaml | 7 +++++-- .github/workflows/exercise_5.yaml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/actions/greeting/action.yaml b/.github/actions/greeting/action.yaml index 2a69fdd..3595e21 100644 --- a/.github/actions/greeting/action.yaml +++ b/.github/actions/greeting/action.yaml @@ -6,10 +6,13 @@ inputs: message: description: The message to print required: true + default: 'World' runs: using: "composite" steps: - name: Set Greeting - run: echo "Hello $INPUT_WHO_TO_GREET." - shell: bash \ No newline at end of file + run: echo "$INPUT_WHO_TO_GREET" + shell: bash + env: + INPUT_WHO_TO_GREET: ${{ inputs.message }} \ No newline at end of file diff --git a/.github/workflows/exercise_5.yaml b/.github/workflows/exercise_5.yaml index fda92cb..cb575d1 100644 --- a/.github/workflows/exercise_5.yaml +++ b/.github/workflows/exercise_5.yaml @@ -15,4 +15,4 @@ jobs: - name: Print Hello World uses: ./.github/actions/greeting with: - message: "people" \ No newline at end of file + message: "Hello, ${{ github.event.pull_request.title }}" \ No newline at end of file