Files

96 lines
1.9 KiB
YAML
Raw Permalink Normal View History

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": [
{
2023-02-01 15:48:19 -08:00
"type": "reusableWorkflowJob",
"id": "build",
"name": "build",
"needs": [],
"if": {
"type": 3,
"expr": "success()"
},
2023-02-01 15:48:19 -08:00
"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"
}
}
]
}
}
]
},
2023-02-01 15:48:19 -08:00
"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"
}
]
}
]
}
]
}