Skip to content

Single item matrix is excluded but still runs job #26647

Discussion options

You must be logged in to vote

You should be able to extend the if: to something like this: ${{ (needs.changes.outputs.packages != '[]' && needs.changes.outputs.packages != '[something]') }}, or fix up the changes job to omit the ‘something’ package from the output, either up front before the changes output value is populated (detected changes to an env var with a variable substitution dropping something from the list) or by manipulating the changes output values as a final step in the changes job with a sed or whatever and updating the output with that outcome with another run: echo "::set-output name=changes::blah,blarg" which would replace the existing values.

Then the subsequent job conditional stays as-is, the exc…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
2 participants