Skip to content

Commit

Permalink
Don't run cleanup on failed workflow_run triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
alessfg committed Feb 28, 2024
1 parent 1714a41 commit a9affe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/image-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
cleanup:
name: Delete untagged NGINX Unprivileged Docker images on the Amazon ECR Public Gallery and the GitHub Container Registry
# if: ${{ github.event_name != 'pull_request' }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down

0 comments on commit a9affe9

Please sign in to comment.