Skip to content

fixed error

fixed error #2

Workflow file for this run

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 }}"

Check failure on line 21 in .github/workflows/reusable.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/reusable.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
- name: Set current time
id: time
run: |
echo "::set-output name=current-time::$(date)"
outputs:
current-time: steps.time.outputs.current-time