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 6feb6bf commit 1fffaec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/actions/greeting/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Hello World Action
description: A custom action that prints a hello message

inputs:
names:
message:
description: The message to print
required: true

runs:
using: "composite"
steps:
- name: Set Greeting
run: echo "Hello ${{ input.names }}."
run: echo "Hello $INPUT_WHO_TO_GREET."
shell: bash
3 changes: 2 additions & 1 deletion .github/workflows/exercise_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
hello-world:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Print Hello World
uses: ./.github/actions/greeting
uses: ./.github/actions/greeting/action@v1
with:
message: "Hello, ${{ github.event.pull_request.title }}"

0 comments on commit 1fffaec

Please sign in to comment.