Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
The six entries you listed are the six jobs GitHub should create, but they do not by themselves show the complete matrix context. If those came from the generated job labels in the Actions UI, the labels can show the base axes ( Add this temporary step to the matrix job and inspect its output: - name: Show complete matrix context
env:
MATRIX_JSON: ${{ toJSON(matrix) }}
run: printf '%s\n' "$MATRIX_JSON"You can also make every value explicit in the job name while debugging: name: >-
fruit=${{ matrix.fruit }}
animal=${{ matrix.animal }}
color=${{ matrix.color }}
shape=${{ matrix.shape }}For the exact documentation example, the first four original jobs should contain the added values:
The two added banana jobs are different: GitHub documents that new combinations created by Official explanation: https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations#expanding-or-adding-matrix-configurations If |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Workflow Configuration
Discussion Details
The example shown in this page doesn't actually work as documented. When I put the same matrix configuration into an actual workflow file, I get the following combinations (i.e. the
colorandshapeis not added at all):{fruit: apple, animal: cat}{fruit: apple, animal: dog}{fruit: banana}{fruit: banana, animal: cat}{fruit: pear, animal: cat}{fruit: pear, animal: dog}Could this be fixed please? I would like to use the functionality in my workflow, but I can't because of the bug :(
All reactions