Skip to content

Commit

Permalink
exercise 5
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrenf95 committed May 17, 2024
1 parent f32b13f commit 6128d67
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/actions/greeting/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Hello World Action

description: A custom action that prints a hello message

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

runs:
using: "composite"
steps:
- name: Set Greeting
run: echo "Hello $INPUT_WHO_TO_GREET."
shell: bash
17 changes: 17 additions & 0 deletions .github/workflows/exercise_5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Hello World

on:
push:
branches:
- master
schedule:
- cron: 0 */5 * * * *

jobs:
hello-world:
runs-on: ubuntu-latest
steps:
- name: Print Hello World
uses: ./.github/actions/greeting/action@v1
with:
message: "Hello, ${{ github.event.pull_request.title }}"
Empty file.

0 comments on commit 6128d67

Please sign in to comment.