Files
Christopher Schleiden 2a3d63551f Rename folders
2023-02-22 15:52:40 -08:00

94 lines
2.0 KiB
YAML

include-source: false # Drop file/line/col from output
---
on: push
jobs:
build1:
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.sha }} # github context
- run: echo ${{ vars.foo }} # vars context
- run: echo ${{ steps.foo }} # steps context
build2:
runs-on: ubuntu-latest
steps:
- run: ${{ '${{ this is an escaped expression }}' }} # escaped expression
- run: ${{ 'it''s an escaped quote' }} # escaped quote
---
{
"jobs": [
{
"type": "job",
"id": "build1",
"name": "build1",
"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)"
}
}
]
},
{
"type": "job",
"id": "build2",
"name": "build2",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": "${{ this is an escaped expression }}"
},
{
"id": "__run_2",
"if": {
"type": 3,
"expr": "success()"
},
"run": "it's an escaped quote"
}
]
}
]
}