Skip to content

Commit

Permalink
fix(ci): prevent running codegen_on_pr on main (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored May 5, 2022
1 parent bcfe96d commit 721867f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ jobs:
if: |
always() &&
needs.setup.outputs.RUN_CODEGEN == 'true' &&
github.event_name == 'pull_request' &&
!contains(needs.*.result, 'cancelled') &&
!contains(needs.*.result, 'failure')
steps:
Expand All @@ -322,7 +323,6 @@ jobs:
type: minimal

- name: Push generated code to generated branch
if: github.event_name == 'pull_request'
id: pushGeneratedCode
run: yarn workspace scripts pushGeneratedCode
env:
Expand Down

0 comments on commit 721867f

Please sign in to comment.