Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install-plugin-from-Gist #96

Closed
Tracked by #92
bph opened this issue Jan 29, 2025 · 1 comment · Fixed by #118
Closed
Tracked by #92

Update install-plugin-from-Gist #96

bph opened this issue Jan 29, 2025 · 1 comment · Fixed by #118
Assignees

Comments

@bph
Copy link
Collaborator

bph commented Jan 29, 2025

Use the shorthand "login": true

The current steps

  {
    "step": "writeFile",
    "path": "/wordpress/wp-content/plugins/0-plugin.php",
    "data": {
  	"resource": "url",
  	"url": "https://gist.githubusercontent.com/ndiego/456b74b243d86c97cda89264c68cbdee/raw/ff00cf25e6eebe4f5a4eaecff10286f71e65340b/block-hooks-demo.php"
	}
},
  {
  	"step": "activatePlugin",
  	"pluginName": "Block Hooks Demo",
  	"pluginPath": "0-plugin.php"
  }
  

Becomes: 

{
"step": "installPlugin",
"pluginData": {
"resource": "literal:directory",
"name": "block-hooks-demo",
"files": {
"0-plugin.php": {
"resource": "url",
"url": "https://gist.githubusercontent.com/ndiego/456b74b243d86c97cda89264c68cbdee/raw/ff00cf25e6eebe4f5a4eaecff10286f71e65340b/block-hooks-demo.php"
}
},
"options": {
"activate": true
}
},

@bph
Copy link
Collaborator Author

bph commented Feb 6, 2025

That installPlugin step would only work with a directory, not a file location.

@bph bph mentioned this issue Feb 6, 2025
@bph bph closed this as completed in #118 Feb 7, 2025
bph added a commit that referenced this issue Feb 7, 2025
Fixes #96 
use login shorthand
Try installPlugin step with PluginData
@github-project-automation github-project-automation bot moved this from Inbox to Done in Playground Board Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant