Skip to content

Commit 69ae846

Browse files
committed
Add pull_request event check
1 parent 79648a3 commit 69ae846

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/cleanup.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Docker image cleanup
22

33
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/cleanup.yml
47
push:
8+
branches:
9+
- main
510
paths:
611
- .github/workflows/cleanup.yml
712
schedule:
@@ -36,5 +41,5 @@ jobs:
3641
delete-orphaned-images: true
3742
delete-partial-images: true
3843
delete-untagged: true
39-
dry-run: ${{ github.event_name == 'push' }}
44+
dry-run: ${{ github.event_name == 'pull_request' }}
4045
package: ci/${{ matrix.image }}

0 commit comments

Comments
 (0)