Skip to content

Commit

Permalink
remove api calls that are failing
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbreen committed Sep 5, 2023
1 parent b7c54a9 commit 568ffd4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,6 @@ jobs:
set: |
*.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 --method GET user/packages --field package_type=container | jq -r --arg repo $GITHUB_REPOSITORY '.[] | select(.repository.full_name == $repo) | .name' | tee $RUNNER_TEMP/names.txt
while read package
do
gh api user/packages/container/${package//\//%2F}/versions | jq -r '.[] | select(.metadata.container.tags==[]) | .id' | tee $RUNNER_TEMP/ids.txt
while read id
do
echo gh api --method DELETE user/packages/container/${package//\//%2F}/versions/${id}
done < $RUNNER_TEMP/ids.txt
done < $RUNNER_TEMP/names.txt
bazel:
name: Bazel Build & Test
Expand Down

0 comments on commit 568ffd4

Please sign in to comment.