Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed May 25, 2024
1 parent 0af24c9 commit e41fd3b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ env:
jobs:
find-all-packages:
runs-on: ubuntu-22.04
outputs:
packages: ${{ steps.list-packages.outputs.packages }}
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down
26 changes: 12 additions & 14 deletions scripts/list_package_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,18 @@ def main():
package_infos[recipe_path.name] = infos

if args.github:
result = {
"packages": [
{
"package_version": f"{package}/{infos["version"]}",
"package": package,
"version": infos["version"],
"conanfile": str(
Path("recipes") / package / infos["folder"] / "conanfile.py"
),
}
for package in sorted(package_infos.keys())
for infos in sorted(package_infos[package], key=lambda x: x["version"])
]
}
result = [
{
"package_version": f"{package}/{infos["version"]}",
"package": package,
"version": infos["version"],
"conanfile": str(
Path("recipes") / package / infos["folder"] / "conanfile.py"
),
}
for package in sorted(package_infos.keys())
for infos in sorted(package_infos[package], key=lambda x: x["version"])
]

print("packages=" + json.dumps(result))
else:
Expand Down

0 comments on commit e41fd3b

Please sign in to comment.