Skip to content

Commit 281a760

Browse files
committed
👷 fix clean-image.yml
1 parent 08fa374 commit 281a760

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/clean-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
run: |
2727
set -euo pipefail
2828
29-
if [[ -n "${GIT_TOKEN:-}" ]]; then
30-
export GH_TOKEN="$GIT_TOKEN"
29+
if [[ -n "${GHCR_TOKEN:-}" ]]; then
30+
export GH_TOKEN="$GHCR_TOKEN"
3131
echo "Using GIT_TOKEN for authentication"
3232
else
3333
echo "Using GITHUB_TOKEN for authentication"
@@ -62,7 +62,7 @@ jobs:
6262
echo "Found ${#ids[@]} untagged versions for package: $pkg"
6363
for id in "${ids[@]}"; do
6464
echo "Deleting version ID: $id"
65-
if gh api -X DELETE -H "Accept: application/vnd.github+json" "/$owner_path/$OWNER/packages/container/$pkg/versions/$id"; then
65+
if gh api --method DELETE -H "Accept: application/vnd.github+json" "/$owner_path/$OWNER/packages/container/$pkg/versions/$id"; then
6666
echo "Successfully deleted version ID: $id"
6767
else
6868
echo "Failed to delete version ID: $id"

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
paths_ignore:
7+
paths-ignore:
88
- .github/actions/setup-python/action.yml
99
- .github/workflows/release.yml
1010
- .github/workflows/auto-merge.yml
@@ -13,7 +13,7 @@ on:
1313
pull_request:
1414
branches:
1515
- main
16-
paths_ignore:
16+
paths-ignore:
1717
- .github/actions/setup-python/action.yml
1818
- .github/workflows/release.yml
1919
- .github/workflows/auto-merge.yml

0 commit comments

Comments
 (0)