We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee87028 commit 130786fCopy full SHA for 130786f
.github/workflows/docker-build.yml
@@ -68,16 +68,16 @@ jobs:
68
PACKAGE: synpage
69
ORG_PAT: ${{ secrets.ORG_PAT }}
70
run: |
71
+ echo "$ORG_PAT" | gh auth login --with-token
72
+
73
+ # タグなしバージョンIDを取得
74
VERSIONS=$(gh api -H "Accept: application/vnd.github+json" \
75
"/users/${OWNER}/packages/container/${PACKAGE}/versions" \
76
--paginate | jq '.[] | select(.metadata.container.tags | length == 0) | .id')
77
- gh auth login --with-token <<< "$ORG_PAT"
-
- # 確認 & 削除
78
+ # 削除処理
79
for VERSION_ID in ${VERSIONS}; do
80
echo "Deleting version ID: ${VERSION_ID}"
81
gh api -X DELETE -H "Accept: application/vnd.github+json" \
82
"/users/${OWNER}/packages/container/${PACKAGE}/versions/${VERSION_ID}"
83
done
0 commit comments