ci: fix snapshot publishing (#23516)

PR Close #23516
This commit is contained in:
Alex Eagle 2018-04-23 16:14:34 -07:00 committed by Victor Berchet
parent b26ac1c22f
commit ace6440460
2 changed files with 6 additions and 2 deletions

View File

@ -192,8 +192,12 @@ workflows:
# We'd really like to filter out pull requests here, but not yet available:
# https://discuss.circleci.com/t/workflows-pull-request-filter/14396/4
# Instead, the publish-build-artifacts.sh script just terminates when
# CIRCLE_PULL_REQUEST is set.
# CIRCLE_PR_NUMBER is set.
requires:
# Only publish if tests pass
- test
# Get the artifacts to publish from the build-packages-dist job
# since the publishing script expects the legacy outputs layout.
- build-packages-dist
aio_monitoring:

View File

@ -126,7 +126,7 @@ if [ $# -gt 0 ]; then
elif [[ \
"$CIRCLE_PROJECT_USERNAME" == "angular" && \
"$CIRCLE_PROJECT_REPONAME" == "angular" && \
! -v CIRCLE_PULL_REQUEST ]]; then
! -v CIRCLE_PR_NUMBER ]]; then
ORG="angular"
# $KEY is set on CI only for non-PR builds. See /.circleci/README.md
openssl aes-256-cbc -d -in .circleci/github_token -k "${KEY}" -out "${HOME}/.git_credentials"