Skip to content

Commit ace6440

Browse files
alexeaglevicb
authored andcommitted
ci: fix snapshot publishing (angular#23516)
PR Close angular#23516
1 parent b26ac1c commit ace6440

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,12 @@ workflows:
192192
# We'd really like to filter out pull requests here, but not yet available:
193193
# https://discuss.circleci.com/t/workflows-pull-request-filter/14396/4
194194
# Instead, the publish-build-artifacts.sh script just terminates when
195-
# CIRCLE_PULL_REQUEST is set.
195+
# CIRCLE_PR_NUMBER is set.
196196
requires:
197+
# Only publish if tests pass
198+
- test
199+
# Get the artifacts to publish from the build-packages-dist job
200+
# since the publishing script expects the legacy outputs layout.
197201
- build-packages-dist
198202

199203
aio_monitoring:

scripts/ci/publish-build-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ if [ $# -gt 0 ]; then
126126
elif [[ \
127127
"$CIRCLE_PROJECT_USERNAME" == "angular" && \
128128
"$CIRCLE_PROJECT_REPONAME" == "angular" && \
129-
! -v CIRCLE_PULL_REQUEST ]]; then
129+
! -v CIRCLE_PR_NUMBER ]]; then
130130
ORG="angular"
131131
# $KEY is set on CI only for non-PR builds. See /.circleci/README.md
132132
openssl aes-256-cbc -d -in .circleci/github_token -k "${KEY}" -out "${HOME}/.git_credentials"

0 commit comments

Comments
 (0)