Skip to content

Instantly share code, notes, and snippets.

@tsurdilo
Created September 29, 2020 00:08
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 tsurdilo/3d754325aa2d368ffbd637370c9138cc to your computer and use it in GitHub Desktop.
Save tsurdilo/3d754325aa2d368ffbd637370c9138cc to your computer and use it in GitHub Desktop.
id: testworkflow
name: Test Workflow
version: '1.0'
functions:
- name: getCurrentTime
operation: http://us-central-workflowsample.cloudfunctions.net/api.yml#datetime
- name: readWikipedia
operation: https://en.wikipedia.org/w/api.json#readLatest
states:
- name: GetTodaysWikipediaArticles
type: operation
start:
kind: default
actions:
- name: getctime
functionRef:
refName: getCurrentTime
- name: gettodaysarticles
functionRef:
refName: readWikipedia
parameters:
query:
action: opensearch
search: "{{ $.dayOfTheWeek }}"
end:
kind: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment