Skip to content

Commit d393662

Browse files
committed
update
1 parent a52c6aa commit d393662

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,20 @@ jobs:
6868
PACKAGE: synpage
6969
run: |
7070
VERSIONS=$(gh api -H "Accept: application/vnd.github+json" \
71-
"https://api.github.com/users/${OWNER}/packages/container/${PACKAGE}/versions" \
71+
"/users/${OWNER}/packages/container/${PACKAGE}/versions" \
7272
--paginate | jq '.[] | select(.metadata.container.tags | length == 0) | .id')
7373
7474
# 確認 & 削除
7575
for VERSION_ID in ${VERSIONS}; do
7676
echo "Deleting version ID: ${VERSION_ID}"
7777
gh api -X DELETE -H "Accept: application/vnd.github+json" \
78-
"https://api.github.com/users/${OWNER}/packages/container/${PACKAGE}/versions/${VERSION_ID}"
79-
done
78+
"/users/${OWNER}/packages/container/${PACKAGE}/versions/${VERSION_ID}"
79+
done
80+
81+
82+
OWNER="shindy-dev" # 組織またはユーザー名
83+
PACKAGE="synpage" # パッケージ名
84+
85+
gh api -H "Accept: application/vnd.github+json" \
86+
"/users/${OWNER}/packages/container/${PACKAGE}/versions" \
87+
--paginate | jq '.[] | select(.metadata.container.tags | length == 0) | {id: .id, created: .created_at}'

0 commit comments

Comments
 (0)