File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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"
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"
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments