ci: only run publish_snapshot when not PR (#41877)

Currently, the non forked PRs such as Renovate will run `publish_snapshot` because `CIRCLE_PR_NUMBER` is not defined for PRs which are opened from non forked repos. Instead we add a filter to only run `publish_snapshot` on releasable branches.

Example of run were the mentioned variable is not defined https://app.circleci.com/pipelines/github/angular/angular/32093/workflows/7c8c4cfc-e6f6-44fc-a6dc-a82a6ac862db/jobs/976611

PR Close #41877
This commit is contained in:
Alan Agius
2021-04-29 12:42:13 +02:00
committed by Misko Hevery
parent f3331a8350
commit ca0fcd6c08
2 changed files with 9 additions and 17 deletions
-1
View File
@@ -117,7 +117,6 @@ merge:
requiredStatuses:
- "ci/circleci: build"
- "ci/circleci: lint"
- "ci/circleci: publish_snapshot"
- "ci/angular: size"
- "cla/google"
- "google3"