Extract nested entries from an array #2088
Unanswered
cmoulliard
asked this question in
Q&A
Replies: 2 comments 1 reply
-
You can do it like this:
Explanation:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
So the syntax your are proposing looks a bit similar to what we use using
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following "job1.yaml" file is a typical example describing for a github workflow the jobs and steps to be executed: https://docs.github.com/en/actions/using-workflows/about-workflows#create-an-example-workflow
In order to get from a yaml flow, the list of the job's names and their step's names, I'm wondering how jq could help me here
Sample:
What I expect to get (to document a project) is the following result (which could also be enriched with solme additional fields like
if:
etc:The following code extracts well the job name but don't include the list of the steps
Beta Was this translation helpful? Give feedback.
All reactions