2 messages
Discussions related to GitHub Actions
toast-gearover 4 years ago
has anyone had much luck creating dynamic matrixes?
my matrix looks like:
my output looks like
and my strategy on my downstream job looks like:
Error when evaluating 'strategy' for job 'scaling-jobs'. .github/workflows/on_manual_scale.yaml (Line: 48, Col: 17): Error reading JToken from JsonReader. Path '', line 0, position 0.,.github/workflows/on_manual_scale.yaml (Line: 48, Col: 17): Unexpected value ''my matrix looks like:
echo "Matrix set to :"
echo "[$joined]"
["1","2","3","4","5","6","7","8","9","10"]my output looks like
echo "::set-output name=matrix::[$joined]"and my strategy on my downstream job looks like:
strategy:
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}Aumkar Prajapatiover 4 years ago(edited)
Hi all, I'm trying to figure out if Github Actions is a good fit. So I have built out a POC with a single application and it works great! However I'm dealing with some issues, we basically have a monorepo with a ton of different applications and different namespaces. It's creating a bit of pain in trying to figure out how Github actions would work.
Basically say we have PR and it's testing and building a few packages, x/javaAppA, y/javaAppB and z/frontendAppA. Would GitHub actions be able to handle things dynamically like this? I'm having some trouble in figuring this out, so far I have a list of changes with the different paths to things, and am able to build one app individually but not all three together. Any suggestions?
Our current setup uses Jenkins with build.properties files in each app folder to define what sort of language it uses and where it deploys to. I.e java app that deploys to kubernetes, reactJS app that deploys via terraform to AWS s3 / Cloudfront
Basically say we have PR and it's testing and building a few packages, x/javaAppA, y/javaAppB and z/frontendAppA. Would GitHub actions be able to handle things dynamically like this? I'm having some trouble in figuring this out, so far I have a list of changes with the different paths to things, and am able to build one app individually but not all three together. Any suggestions?
Our current setup uses Jenkins with build.properties files in each app folder to define what sort of language it uses and where it deploys to. I.e java app that deploys to kubernetes, reactJS app that deploys via terraform to AWS s3 / Cloudfront