Skip to content

Commit a9affe9

Browse files
committed
Don't run cleanup on failed workflow_run triggers
1 parent 1714a41 commit a9affe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/image-cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
cleanup:
1010
name: Delete untagged NGINX Unprivileged Docker images on the Amazon ECR Public Gallery and the GitHub Container Registry
11-
# if: ${{ github.event_name != 'pull_request' }}
11+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
1212
runs-on: ubuntu-22.04
1313
strategy:
1414
fail-fast: false

0 commit comments

Comments
 (0)