Skip to content

Commit 130786f

Browse files
committed
update
1 parent ee87028 commit 130786f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ jobs:
6868
PACKAGE: synpage
6969
ORG_PAT: ${{ secrets.ORG_PAT }}
7070
run: |
71+
echo "$ORG_PAT" | gh auth login --with-token
72+
73+
# タグなしバージョンIDを取得
7174
VERSIONS=$(gh api -H "Accept: application/vnd.github+json" \
7275
"/users/${OWNER}/packages/container/${PACKAGE}/versions" \
7376
--paginate | jq '.[] | select(.metadata.container.tags | length == 0) | .id')
7477
75-
gh auth login --with-token <<< "$ORG_PAT"
76-
77-
# 確認 & 削除
78+
# 削除処理
7879
for VERSION_ID in ${VERSIONS}; do
7980
echo "Deleting version ID: ${VERSION_ID}"
8081
gh api -X DELETE -H "Accept: application/vnd.github+json" \
8182
"/users/${OWNER}/packages/container/${PACKAGE}/versions/${VERSION_ID}"
8283
done
83-

0 commit comments

Comments
 (0)