include-source: false # Drop file/line/col from output
skip:
  - Go
---
on: push
jobs:
  build:
    uses: contoso/templates/.github/workflows/build.yml@v1
---
contoso/templates/.github/workflows/build.yml@v1
---
on:
  workflow_call:
    outputs:
      my-output:
        description: Some output
        value: ${{ jobs.job1.outputs.hello }}
jobs:
  job1:
    runs-on: ubuntu-latest
    outputs:
      hello: hello
    steps:
      - run: echo 1
---
{
  "jobs": [
    {
      "type": "reusableWorkflowJob",
      "id": "build",
      "name": "build",
      "needs": [],
      "if": {
        "type": 3,
        "expr": "success()"
      },
      "ref": "contoso/templates/.github/workflows/build.yml@v1",
      "outputs": {
        "type": 2,
        "map": [
          {
            "Key": "my-output",
            "Value": {
              "type": 2,
              "map": [
                {
                  "Key": "description",
                  "Value": "Some output"
                },
                {
                  "Key": "value",
                  "Value": {
                    "type": 3,
                    "expr": "jobs.job1.outputs.hello"
                  }
                }
              ]
            }
          }
        ]
      },
      "jobs": [
        {
          "type": "job",
          "id": "job1",
          "name": "job1",
          "if": {
            "type": 3,
            "expr": "success()"
          },
          "runs-on": "ubuntu-latest",
          "outputs": {
            "type": 2,
            "map": [
              {
                "Key": "hello",
                "Value": "hello"
              }
            ]
          },
          "steps": [
            {
              "id": "__run",
              "if": {
                "type": 3,
                "expr": "success()"
              },
              "run": "echo 1"
            }
          ]
        }
      ]
    }
  ]
}
