Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Dec 27, 2024
1 parent e161283 commit cf7fee8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
generate-matrix:
runs-on: ubuntu-24.04
outputs:
packages: ${{ steps.list-packages-with-dependents.outputs.packages }}
packages: ${{ steps.list-packages.outputs.packages }}
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
echo "graph_file=wvware-dependency-tree.json" >> $GITHUB_OUTPUT
- name: Get selected packages from commits and workflow_dispatch inputs
id: list-packages-with-dependents
id: list-packages
run: python scripts/list_package_references.py
env:
GITHUB_EVENT: ${{ toJson(github.event) }}
Expand Down
11 changes: 9 additions & 2 deletions scripts/list_package_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,15 @@ def main():

if is_github:
with open(args.github_output, "w") as out:
for package_reference in selected_packages:
print(f"packages={json.dumps(package_reference)}", file=out)
selected_package_infos = [
get_package_info(
package_infos,
package_reference.split("/")[0],
package_reference.split("/")[1],
)
for package_reference in selected_packages
]
print(f"packages={json.dumps(selected_package_infos)}", file=out)

return 0

Expand Down

0 comments on commit cf7fee8

Please sign in to comment.