fixed error #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Reusable workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
who-to-greet: | ||
description: 'Person to greet' | ||
type: string | ||
required: true | ||
default: 'World' | ||
outputs: | ||
current-time: | ||
description: 'The time we greeted the person' | ||
value: ${{ jobs.reusable-job.current-time }} | ||
jobs: | ||
reusable-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Echo greeting | ||
run: echo "Hello ${{ inputs.who-to-greet }}" | ||
- name: Set current time | ||
id: time | ||
run: | | ||
echo "::set-output name=current-time::$(date)" | ||
outputs: | ||
current-time: steps.time.outputs.current-time | ||