Skip to content

Commit f235371

Browse files
committed
cpu and gpu
1 parent 63b1251 commit f235371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cleanup-ghcr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,14 @@ jobs:
2929
env:
3030
OWNER: ${{ github.repository_owner }}
3131
IMAGE: deep-learning-crash-course
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3233
run: |
3334
echo "Fetching all versions of $OWNER/$IMAGE..."
3435
versions=$(gh api --paginate -H "Accept: application/vnd.github.v3+json" \
3536
/orgs/$OWNER/packages/container/$IMAGE/versions)
36-
# find the newest by creation timestamp
3737
newest_id=$(echo "$versions" \
3838
| jq -r 'sort_by(.created_at) | reverse | .[0].id')
3939
echo "🛡 Keeping version $newest_id (most recent)"
40-
# loop through all and delete those that aren't the newest
4140
echo "$versions" | jq -c '.[]' | while read ver; do
4241
id=$(echo "$ver" | jq -r '.id')
4342
if [ "$id" != "$newest_id" ]; then
@@ -48,3 +47,4 @@ jobs:
4847
fi
4948
done
5049
50+

0 commit comments

Comments
 (0)