Skip to content

Commit 721867f

Browse files
authored
fix(ci): prevent running codegen_on_pr on main (#476)
1 parent bcfe96d commit 721867f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ jobs:
302302
if: |
303303
always() &&
304304
needs.setup.outputs.RUN_CODEGEN == 'true' &&
305+
github.event_name == 'pull_request' &&
305306
!contains(needs.*.result, 'cancelled') &&
306307
!contains(needs.*.result, 'failure')
307308
steps:
@@ -322,7 +323,6 @@ jobs:
322323
type: minimal
323324

324325
- name: Push generated code to generated branch
325-
if: github.event_name == 'pull_request'
326326
id: pushGeneratedCode
327327
run: yarn workspace scripts pushGeneratedCode
328328
env:

0 commit comments

Comments
 (0)