ci: guard image job with an explicit push-event check
- defense in depth alongside the version job's existing push-only condition, so the image job can't run on pull requests
This commit is contained in:
1 file changed
+1
@@ -114,6 +114,7 @@ jobs:
|
||||
# server/client may be skipped when their paths didn't change
|
||||
if: |
|
||||
!failure() && !cancelled() &&
|
||||
github.event_name == 'push' &&
|
||||
needs.version.outputs.changed == 'true' &&
|
||||
(needs.server.result == 'success' || needs.server.result == 'skipped') &&
|
||||
(needs.client.result == 'success' || needs.client.result == 'skipped')
|
||||
|
||||
Reference in new issue
Block a user