diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c68bb9..34b068d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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) }} diff --git a/scripts/list_package_references.py b/scripts/list_package_references.py index 3fbe44d..ba1f11d 100644 --- a/scripts/list_package_references.py +++ b/scripts/list_package_references.py @@ -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