Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 532 Bytes

File metadata and controls

15 lines (12 loc) · 532 Bytes

read-state

The read-state command evaluates a state name and invokes the then commands if the result is not null and not an empty string, otherwise it invokes the else commands.

- read-state: ${{use_https}}
  then:
  - sh: curl https://server/index.html
  else:
  - sh: curl http://server/index.html
Note
read-state will run the then commands even if ${{use_https}} is "false" because that is not empty and not null. Use 'js' if you want to perform boolean operations