Skip to content

Commit

Permalink
docs: adjust script to handle zero unused images DOC-1232
Browse files Browse the repository at this point in the history
  • Loading branch information
addetz committed Oct 24, 2024
1 parent 03ca0c4 commit 80940c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/clean-up-unused-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
# On the first of every month at 2 am
- cron: '0 2 1 * *'
workflow_dispatch:
push:
branches: ['handle-zero-images-doc-1232']

concurrency:
group: clean-up-images-${{ github.ref }}
Expand Down Expand Up @@ -50,7 +52,7 @@ jobs:
- name: Create PR with unused images
run: |
unused_image_count=$(wc -l < unused_images.json)
if unused_image_count == 0; then
if $unused_image_count == 0; then
"No images found to remove."
exit 0
fi
Expand Down

0 comments on commit 80940c3

Please sign in to comment.