Skip to content

Commit

Permalink
add outputs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gilzow committed Sep 14, 2023
1 parent 3f0d49e commit e6b2b6d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/outputs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Welcome a user, but let them know when via outputs
on:
workflow_dispatch:
inputs:
thename:
description: "Who should we greet?"
type: string
required: true
jobs:
say_hello:
runs-on: ubuntu-latest
steps:
- run: echo "Hello there, ${{ inputs.thename }}!!!"
name: Say hello to user
- id: get-time
name: Grab the current time
run: |
curTime=$(date)
echo "currenttime=${curTime}" >> $GITHUB_OUTPUT
- run: echo "The time from the early step is ${{ steps.get-time.outputs.currenttime }}"

0 comments on commit e6b2b6d

Please sign in to comment.