Files
languageservices/actions-workflow-parser/testdata/reader/step-run.yml
T
2023-01-06 15:54:31 -08:00

61 lines
1.2 KiB
YAML

include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.sha }} # github context
- run: echo ${{ vars.foo }} # vars context
- run: echo ${{ steps.foo }} # steps context
---
{
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": {
"type": 3,
"expr": "format('echo {0}', github.sha)"
}
},
{
"id": "__run_2",
"if": {
"type": 3,
"expr": "success()"
},
"run": {
"type": 3,
"expr": "format('echo {0}', vars.foo)"
}
},
{
"id": "__run_3",
"if": {
"type": 3,
"expr": "success()"
},
"run": {
"type": 3,
"expr": "format('echo {0}', steps.foo)"
}
}
]
}
]
}