Skip to content

Commit

Permalink
Add dependency info to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ctcampbell committed Nov 6, 2023
1 parent c5d82b1 commit 9cbf4c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ runs:
.data.repository.languages.edges[] |
select(.size >= ${{ inputs.minimumLanguageBytes }}).node.name |
select(. | IN("Java","C","C++","Python","Go","C#")) as $language |
[$nameWithOwner, if $language == "C" then "C++" else $language end] | tostring
{nameWithOwner: $nameWithOwner, language: if $language == "C" then "C++" else $language end, isDependency: false} | tostring
] | unique
) as $targetrepo |
(
Expand All @@ -107,7 +107,7 @@ runs:
$repository.languages.edges[] |
select(.size >= ${{ inputs.minimumLanguageBytes }}).node.name |
select(. | IN("Java","C","C++","Python","Go","C#")) as $language |
[$nameWithOwner, if $language == "C" then "C++" else $language end] | tostring
{nameWithOwner: $nameWithOwner, language: if $language == "C" then "C++" else $language end, isDependency: true} | tostring
] | unique
) as $dependencyrepos |
if ("${{ inputs.analyzeDependencies }}" == "true") then ($targetrepo + $dependencyrepos) | unique else $targetrepo end
Expand Down

0 comments on commit 9cbf4c2

Please sign in to comment.