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 c4050eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .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 @@ -49,8 +51,8 @@ jobs:
- name: Create PR with unused images
run: |
unused_image_count=$(wc -l < unused_images.json)
if unused_image_count == 0; then
unused_image_count=$(wc -l < "unused_images.json")
if $unused_image_count == 0; then
"No images found to remove."
exit 0
fi
Expand Down

0 comments on commit c4050eb

Please sign in to comment.