Skip to content

Instantly share code, notes, and snippets.

@pentium10
Created November 30, 2020 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pentium10/b5c260f060dcdbe8a9882189bf59f9e7 to your computer and use it in GitHub Desktop.
Save pentium10/b5c260f060dcdbe8a9882189bf59f9e7 to your computer and use it in GitHub Desktop.
Sample VSCode tasks for Workflows deploy
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
//
// Sample VSCode tasks for Workflows deploy
"version": "2.0.0",
"tasks": [
{
"label": "workflow: run",
"type": "shell",
"command": "gcloud beta workflows deploy ${fileBasenameNoExtension} --source=${file};gcloud beta workflows execute ${fileBasenameNoExtension};gcloud beta workflows executions describe-last",
"problemMatcher": [],
},
{
"label": "workflow: deploy",
"type": "shell",
"command": "gcloud beta workflows deploy ${fileBasenameNoExtension} --source=${file}",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
},
{
"label": "workflow: execute",
"type": "shell",
"command": "gcloud beta workflows execute ${fileBasenameNoExtension}",
"problemMatcher": [],
},
{
"label": "workflow: describe-last",
"type": "shell",
"command": "gcloud beta workflows executions describe-last",
"problemMatcher": [],
},
{
"label": "workflow: list",
"type": "shell",
"command": "gcloud beta workflows list",
"problemMatcher": [],
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment