Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion workflow-parser/src/workflow-v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,11 @@
"concurrency": "job-concurrency",
"outputs": "job-outputs",
"defaults": "job-defaults",
"steps": "steps"
"steps": "steps",
"snapshot": {
"type": "snapshot",
"description": "snapshot for custom image"
}
}
}
},
Expand Down Expand Up @@ -2522,6 +2526,12 @@
"string": {
"require-non-empty": true
}
},
"snapshot": {
"description": "snapshot for custom image",
"string": {
"require-non-empty": true
}
}
}
}
34 changes: 34 additions & 0 deletions workflow-parser/testdata/reader/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
snapshot: custom-image
steps:
- run: echo hi
---
{
"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"
}
]
}
]
}
Loading