Skip to content

Commit e42bef2

Browse files
committed
combine two writeFile calles to one writeFiles step. Fixes 104
1 parent 75950b9 commit e42bef2

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

blueprints/wpcli-post-with-image/blueprint.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@
77
"categories": ["Content", "wpcli"]
88
},
99
"landingPage": "/?p=4",
10+
"login": true,
1011
"steps": [
1112
{
12-
"step": "login"
13-
},
14-
{
15-
"step": "writeFile",
16-
"path": "/wordpress/wp-content/postcontent.md",
17-
"data": {
18-
"resource": "url",
19-
"url": "https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/postcontent.md"
13+
"step": "writeFiles",
14+
"writeToPath": "/wordpress/wp-content",
15+
"filesTree": {
16+
"resource": "literal:directory",
17+
"name": "wp-content",
18+
"files": {
19+
"postcontent.md": {
20+
"resource": "url",
21+
"url": "https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/postcontent.md"
22+
},
23+
"Select-storage-method.png": {
24+
"resource": "url",
25+
"url": "https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/Select-storage-method.png"
26+
}
27+
}
2028
}
21-
},
29+
},
2230
{
2331
"step": "wp-cli",
2432
"command": "wp post create --post_title='Welcome to Playground' --post_status='published' /wordpress/wp-content/postcontent.md"
2533
},
26-
{
27-
"step": "writeFile",
28-
"path": "/wordpress/wp-content/Select-storage-method.png",
29-
"data": {
30-
"resource": "url",
31-
"url": "https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/Select-storage-method.png"
32-
}
33-
},
3434
{
3535
"step": "wp-cli",
3636
"command": "wp media import wordpress/wp-content/Select-storage-method.png --post_id=4 --title='Select your storage method' --featured_image"

0 commit comments

Comments
 (0)