Skip to content

Commit 6d57901

Browse files
committed
👷 Set OWNER_TYPE
1 parent bb03257 commit 6d57901

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/delete_images.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
else
3535
OWNER_TYPE=org
3636
fi
37+
echo "OWNER_TYPE=${OWNER_TYPE}" >> $GITHUB_ENV
3738
if [[ "${{ matrix.variant }}" != "" ]]
3839
then
3940
VARIANT="-${{ matrix.variant }}"
@@ -48,10 +49,13 @@ jobs:
4849
https://api.github.com/${OWNER_TYPE}/${OWNER}/packages/container/c-pac/versions/${VERSION_ID}
4950
- name: Delete all containers from repository without tags
5051
if: matrix.variant == ''
52+
env:
53+
OWNER_TYPE: ${{ env.OWNER_TYPE }}
5154
uses: Chizkiyahu/delete-untagged-ghcr-action@v6
5255
with:
5356
token: ${{ secrets.API_PACKAGE_READ_DELETE }}
5457
repository_owner: ${{ github.repository_owner }}
5558
repository: ${{ github.repository }}
5659
untagged_only: true
57-
owner_type: org
60+
except_untagged_multiplatform: false
61+
owner_type: ${{ env.OWNER_TYPE }}

0 commit comments

Comments
 (0)