on:
  workflow_call:
    inputs:
      image-name:
        description: Name of Docker image
        required: true
        type: string
    outputs:
      image-version:
        description: "Docker image version"
        value: ${{ jobs.generate-image-version.outputs.imagetag }}
jobs:
  generate-image-version:
    runs-on: ubuntu-latest
    outputs:
      imagetag: "${{ steps.hello.outputs.foo }}"
    steps:
      - run: echo hello
        id: hello
