lhotari edited a comment on pull request #14226:
URL: https://github.com/apache/pulsar/pull/14226#issuecomment-1036038903


   Listing job names, requires [yq](https://mikefarah.gitbook.io/yq) (`brew 
install yq`):
   ```
   for f in .github/workflows/*.yaml; do FILE=$f yq eval -o j '.jobs | 
to_entries | {"file": env(FILE),"id":.[].key, "name":.[].value.name}' $f; done
   ```
   
   The name of the job is the id if the name is empty or unspecified. for 
example
   ```
   {
     "file": ".github/workflows/ci-license.yaml",
     "id": "license-check",
     "name": "License check"
   }
   ```
   and in comparison
   ```
   {
     "file": ".github/workflows/ci-owasp-dep-check.yaml",
     "id": "owasp-dep-check",
     "name": null
   }
   ```
   
   matrix jobs are an exception. if the name isn't specified, the matrix 
variable will be part of the name, for example for file 
.github/workflows/ci-unit-broker-broker-gp.yaml, the generated names are:
   ```
   pulsar-ci-test (group3)
   pulsar-ci-test (group2)
   pulsar-ci-test (group1)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to