Skip to content

Commit

Permalink
exercise 5
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorycottone committed May 17, 2024
1 parent baeab6b commit cc6340a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/actions/greeting/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: echo "$INPUT_WHO_TO_GREET"
shell: bash
env:
INPUT_WHO_TO_GREET: ${{ inputs.message }}
2 changes: 1 addition & 1 deletion .github/workflows/exercise_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- name: Print Hello World
uses: ./.github/actions/greeting
with:
message: "people"
message: "Hello, ${{ github.event.pull_request.title }}"

0 comments on commit cc6340a

Please sign in to comment.