Generates an overview of all artifacts within an organization.
python generate_artifact_overview.py your_organization your_github_token
python generate_artifact_overview.py your_organization your_github_token --ignore-expired
Fetching artifacts for repository: repo1
Skipping expired artifact: old_logs
Fetching artifacts for repository: repo2
=== Artifacts Overview ===
Repository: repo1
- Artifact: build_logs, Size: 10.24 MB
Created: 2024-11-01T12:34:56Z, Expires: 2024-12-01T12:34:56Z
Workflow Run ID: 123456789
Workflow URL: https://github.com/your_organization/repo1/actions/runs/123456789
Repository: repo2
- Artifact: test_results, Size: 20.48 MB
Created: 2024-11-05T08:00:00Z, Expires: 2024-12-05T08:00:00Z
Workflow Run ID: 987654321
Workflow URL: https://github.com/your_organization/repo2/actions/runs/987654321
Total size of all artifacts: 30.72 MB
{
"repo1": [
{
"name": "build_logs",
"size_in_bytes": 10240000,
"created_at": "2024-11-01T12:34:56Z",
"expires_at": "2024-12-01T12:34:56Z",
"workflow_run_id": 123456789,
"workflow_url": "https://github.com/your_organization/repo1/actions/runs/123456789"
}
],
"repo2": [
{
"name": "test_results",
"size_in_bytes": 20480000,
"created_at": "2024-11-05T08:00:00Z",
"expires_at": "2024-12-05T08:00:00Z",
"workflow_run_id": 987654321,
"workflow_url": "https://github.com/your_organization/repo2/actions/runs/987654321"
}
]
}