Skip to content

Commit

Permalink
Revert "Reapply "add container cleanup dry-run""
Browse files Browse the repository at this point in the history
 Traceback (most recent call last):
  File "/home/runner/work/_actions/snok/container-retention-policy/v2/main.py", line 596, in <module>
    asyncio.run(main(*argv[1:]))
  File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/runner/work/_actions/snok/container-retention-policy/v2/main.py", line 553, in main
    all_packages = await GithubAPI.list_packages(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/_actions/snok/container-retention-policy/v2/main.py", line 281, in list_packages
    return await list_packages(http_client=http_client)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/_actions/snok/container-retention-policy/v2/main.py", line 147, in list_packages
    packages = await get_all_pages(
               ^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/_actions/snok/container-retention-policy/v2/main.py", line 123, in get_all_pages
    response.raise_for_status()
  File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/httpx/_models.py", line 749, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://api.github.com/user/packages?package_type=container&per_page=100'
For more information check: https://httpstatuses.com/400
Error: Process completed with exit code 1.
  • Loading branch information
nickbreen committed Sep 4, 2023
1 parent b2d5e08 commit 549851a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ jobs:
set: |
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
- name: Prune Dangling Container Images
uses: snok/container-retention-policy@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
account-type: personal
image-names: nickbreen/bz-platforms2/executors/*
untagged-only: true
cut-off: 1 day ago UTC
dry-run: true
bazel:
name: Bazel Build & Test
Expand Down

0 comments on commit 549851a

Please sign in to comment.