Skip to content

Commit dd3f794

Browse files
committed
CI clone_script fix
1 parent f4cd2a3 commit dd3f794

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

appveyor.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ branches:
2020
- unstable
2121
- /release\/.+/
2222

23+
# This ensures the base branch is loaded which is required for regitlint to run.
24+
clone_script:
25+
- ps: |
26+
git clone -q --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
27+
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge:
28+
git checkout -qf FETCH_HEAD
29+
2330
pull_requests:
2431
do_not_increment_build_number: true
2532

@@ -36,12 +43,6 @@ for:
3643
- image: Visual Studio 2019
3744
services:
3845
- postgresql101
39-
# This ensures the base branch is loaded which is required for regitlint to run.
40-
clone_script:
41-
- ps: |
42-
git clone --branch=$env:APPVEYOR_REPO_BRANCH [email protected]:$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
43-
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge:
44-
git checkout -qf FETCH_HEAD
4546
# REF: https://github.com/docascode/docfx-seed/blob/master/appveyor.yml
4647
before_build:
4748
- pwsh: |

0 commit comments

Comments
 (0)