@@ -63,11 +63,10 @@ jobs:
6363
6464 bazel_build_and_test :
6565 needs : path_filter
66- # Only run workflow if this is a scheduled run on master branch,
67- # if the workflow has been triggered manually or if it is a pull_request
68- # that skip-duplicate-action wants to run again.
66+ # Only run workflow if this is a push to the magma repository,
67+ # if the workflow has been triggered manually or if it is a pull_request.
6968 if : |
70- (github.event_name == 'schedule ' && github.ref == 'refs/heads/master ') ||
69+ (github.event_name == 'push ' && github.repository_owner == 'magma ') ||
7170 needs.path_filter.outputs.files_changed == 'true' ||
7271 github.event_name == 'workflow_dispatch'
7372 strategy :
@@ -163,7 +162,7 @@ jobs:
163162 echo "Available storage:"
164163 df -h
165164 - name : Notify failure to slack
166- if : failure() && ( github.event_name == 'push' || github.event_name == 'schedule') && github.repository_owner == 'magma'
165+ if : failure() && github.event_name == 'push' && github.repository_owner == 'magma'
167166 uses :
rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # [email protected] 168167 env :
169168 SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_BAZEL_CI }}
@@ -219,11 +218,10 @@ jobs:
219218
220219 bazel_package :
221220 needs : path_filter
222- # Only run workflow if this is a scheduled run on master branch,
223- # if the workflow has been triggered manually or if it is a pull_request
224- # that skip-duplicate-action wants to run again.
221+ # Only run workflow if this is a push to the magma repository,
222+ # if the workflow has been triggered manually or if it is a pull_request.
225223 if : |
226- (github.event_name == 'schedule ' && github.ref == 'refs/heads/master ') ||
224+ (github.event_name == 'push ' && github.repository_owner == 'magma ') ||
227225 needs.path_filter.outputs.files_changed == 'true' ||
228226 github.event_name == 'workflow_dispatch'
229227 name : Bazel Package Job
@@ -266,7 +264,7 @@ jobs:
266264 echo "Available storage:"
267265 df -h
268266 - name : Notify failure to slack
269- if : failure() && ( github.event_name == 'push' || github.event_name == 'schedule') && github.repository_owner == 'magma'
267+ if : failure() && github.event_name == 'push' && github.repository_owner == 'magma'
270268 uses :
rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # [email protected] 271269 env :
272270 SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_BAZEL_CI }}
@@ -288,7 +286,7 @@ jobs:
288286 run : |
289287 ./bazel/scripts/check_py_bazel.sh
290288 - name : Notify failure to slack
291- if : failure() && ( github.event_name == 'push' || github.event_name == 'schedule') && github.repository_owner == 'magma'
289+ if : failure() && github.event_name == 'push' && github.repository_owner == 'magma'
292290 uses :
rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # [email protected] 293291 env :
294292 SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_BAZEL_CI }}
@@ -310,7 +308,7 @@ jobs:
310308 run : |
311309 ./bazel/scripts/check_c_cpp_bazel.sh
312310 - name : Notify failure to slack
313- if : failure() && ( github.event_name == 'push' || github.event_name == 'schedule') && github.repository_owner == 'magma'
311+ if : failure() && github.event_name == 'push' && github.repository_owner == 'magma'
314312 uses :
rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # [email protected] 315313 env :
316314 SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_BAZEL_CI }}
0 commit comments