Skip to content

Commit

Permalink
Avoid failing if docker images returns empty
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Oct 14, 2024
1 parent cecd30c commit 116332e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/_extension_distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,14 @@ jobs:
steps:
- name: Free up some unused space
run: |
docker rmi $(docker images -a -q)
docker images -a -q > package.list
if [ -s package.list ]; then
echo "To be deleted"
cat package.list
echo "---"
docker rmi $(cat package.list)
fi
rm package.list
- uses: actions/checkout@v4
name: Checkout override repository
Expand Down

0 comments on commit 116332e

Please sign in to comment.