Skip to content

Commit

Permalink
use GH CLI to delete (dry-run) untagged package versions + GH_TOKEN e…
Browse files Browse the repository at this point in the history
…nv-var
  • Loading branch information
nickbreen committed Sep 5, 2023
1 parent ab63629 commit 98d823e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
- name: Remove Untagged Container Images
env:
GH_TOKEN: ${{ github.token }}
run: |
set -x
gh api /user/packages?package_type=container | jq -r --arg repo {{github.repository}} '.[] | select(.repository.full_name == $repo) | .name' | tee {{runner.temp}}/names.txt
Expand Down

0 comments on commit 98d823e

Please sign in to comment.