zhengruifeng commented on code in PR #60434: URL: https://github.com/apache/spark/pull/60434#discussion_r4593814477
########## .github/workflows/build_infra_images_cache.yml: ########## @@ -52,7 +52,19 @@ on: workflow_dispatch: jobs: main: - if: github.repository == 'apache/spark' + if: >- + github.repository == 'apache/spark' && + ( + github.event_name != 'create' || + ( + github.ref_type == 'branch' && + (github.ref_name == 'master' || startsWith(github.ref_name, 'branch-')) Review Comment: Agreed. Added `!contains(github.ref_name, '/')` to the creation-event condition, so `branch-4.4/rc-prep` and `v5.0.0/test` are now skipped. Validated both regressions alongside release refs and the other event types; actionlint passes. ########## .github/workflows/build_infra_images_cache.yml: ########## @@ -52,7 +52,19 @@ on: workflow_dispatch: jobs: main: - if: github.repository == 'apache/spark' + if: >- + github.repository == 'apache/spark' && + ( + github.event_name != 'create' || + ( + github.ref_type == 'branch' && + (github.ref_name == 'master' || startsWith(github.ref_name, 'branch-')) Review Comment: Removed the redundant `master` comparison and updated the PR description to say `branch-*` branches and `v*` tags without `/`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
