Skip to content

Commit

Permalink
[core] Fix PR run detection in test_bundle_size_monitor (mui#29879)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Nov 24, 2021
1 parent 9eb4d9a commit f3e41f0
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,10 @@ jobs:
- when:
# don't run on PRs
condition:
not: $CIRCLE_PR_NUMBER
not:
matches:
pattern: "^pull/\\d+"
value: << pipeline.git.branch >>
steps:
# Upload distributables to S3
- aws-s3/copy:
Expand All @@ -670,7 +673,10 @@ jobs:
- when:
# don't run on PRs
condition:
not: $CIRCLE_PR_NUMBER
not:
matches:
pattern: "^pull/\\d+"
value: << pipeline.git.branch >>
steps:
# persist size snapshot on S3
- aws-s3/copy:
Expand All @@ -688,15 +694,11 @@ jobs:
aws-secret-access-key: AWS_SECRET_ACCESS_KEY_ARTIFACTS
from: size-snapshot.json
to: s3://mui-org-material-ui/artifacts/$CIRCLE_BRANCH/latest/
- when:
# Run on PRs
condition: $CIRCLE_PR_NUMBER
steps:
- run:
name: run danger on PRs
command: yarn danger ci
environment:
DANGER_COMMAND: 'reportBundleSize'
- run:
name: run danger on PRs
command: yarn danger ci
environment:
DANGER_COMMAND: 'reportBundleSize'
workflows:
version: 2
pipeline:
Expand Down

0 comments on commit f3e41f0

Please sign in to comment.