Skip to content

Commit 498858e

Browse files
Merge pull request #93 from kishikawakatsumi/azure
Tweaks
2 parents 90a9e53 + 0cb15db commit 498858e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ jobs:
3030
- bash: |
3131
set -ex
3232
xcodebuild -version
33-
pushd $(mktemp -d)
34-
echo "github \"${SourceRepositoryURI}\" \"${SourceBranch}\"" > Cartfile
33+
pushd $(mktemp -d)
34+
if [[ -z "$(System.PullRequest.SourceRepositoryURI)" ]]; then
35+
echo "github \"kishikawakatsumi/IBPCollectionViewCompositionalLayout\" \"master\"" > Cartfile
36+
else
37+
echo "github \"$(System.PullRequest.SourceRepositoryURI)\" \"$(System.PullRequest.SourceBranch)\"" > Cartfile
38+
fi
3539
carthage update --verbose --no-use-binaries
3640
popd
3741
displayName: 'Carthage'
38-
env:
39-
SourceRepositoryURI: $(System.PullRequest.SourceRepositoryURI)
40-
SourceBranch: $(System.PullRequest.SourceBranch)

0 commit comments

Comments
 (0)