Skip to content

Failing to send data from an action to the next #5661

Answered by LMacchi
LMacchi asked this question in Q&A
Discussion options

You must be logged in to vote

I think I got it for anyway following along:

Seems like the value inside of item() is available just during the command execution and not afterwards. Instead of using core.noop, I switched to core.local and did a bash validation + succeeded() and failed() controls.

My working workflow:

version: 1.0

description: Fake description

input:
  - user
  - pwd

vars:
  - factors: null
  - message: null


tasks:
  http_call:
    action: core.http method=GET username="{{ ctx().user }}" url="https://redacted?output_mode=json" verify_ssl_cert=false password="{{ ctx().pwd }}"
    next:
      - when: "{{ succeeded() }}"
        publish:
          - my_list: "{{ result().body | jsonpath_query('entry[0]…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by LMacchi
Comment options

You must be logged in to vote
1 reply
@LMacchi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants