File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff 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}'
You can’t perform that action at this time.
0 commit comments