Skip to content

Commit

Permalink
Update hello_world.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brodjieski authored Jan 13, 2025
1 parent 6830288 commit e424108
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/hello_world.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
name: Hello World

on:
workflow_dispatch
workflow_dispatch:
inputs:
release_date:
description: "Date used to populated Source Release Date fields (YYYY-MM-DD)"
required: true
type: string

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: validate input
run: |
if [[ ${{ github.event.inputs.release_date }} ~= "" ]]; then
echo "Using ${{ github.event.inputs.release_date }} for release date, continuing..."
else
echo "Invalid date, please use the format YYYY-MM-DD"
exit 1
fi
- name: Greeting
run: echo "Hello World!"

0 comments on commit e424108

Please sign in to comment.