Files
languageservices/workflow-parser/testdata/reader/workflow-concurrency-mapping.yml
Christopher Schleiden 2a3d63551f Rename folders
2023-02-22 15:52:40 -08:00

53 lines
873 B
YAML

include-source: false # Drop file/line/col from output
---
on: push
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"concurrency": {
"type": 2,
"map": [
{
"Key": "group",
"Value": {
"type": 3,
"expr": "format('ci-{0}', github.ref)"
}
},
{
"Key": "cancel-in-progress",
"Value": true
}
]
},
"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": "echo hi"
}
]
}
]
}